This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Cookbook Name:: linux-vm | |
| # Recipe:: developer | |
| # | |
| # Copyright (C) 2012 YOUR_NAME | |
| # | |
| # All rights reserved - Do Not Redistribute | |
| # | |
| include_recipe 'recipe[chef-solo-search]' # required for users::sysadmins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Cookbook Name:: linux-vm | |
| # Recipe:: default | |
| # | |
| # Copyright (C) 2012 YOUR_NAME | |
| # | |
| # All rights reserved - Do Not Redistribute | |
| # | |
| include_recipe 'linux-vm::users' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'berkshelf' | |
| Berksfile.from_file('/path/to/Berksfile').install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Thing | |
| def self.main | |
| # do stuff | |
| puts "in main" | |
| end | |
| end | |
| Thing.main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module DCell | |
| class << self | |
| # Start combines setup and run! into a single step | |
| def start(options = {}) | |
| setup options | |
| run! | |
| end | |
| end | |
| # DCell's actor dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Something | |
| include Celluloid | |
| def ruby_script(name, host, options = {}) | |
| name = name.split('.rb')[0] | |
| script = File.read(MB.scripts.join("#{name}.rb")) | |
| command = "#{EMBEDDED_RUBY_PATH} -e '#{script}'" | |
| status, response = ssh_command(host, command, options) | |
| case status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def define_thing(my_proc) | |
| command = InternalCommand.get() | |
| arguments = my_proc.parameters.collect { |type, parameter| parameter } | |
| method_option :force, | |
| type: :boolean, | |
| default: false, | |
| desc: "Run command even if the environment is locked", | |
| aliases: "-f" | |
| desc("#{command.name} #{arguments.map(&:upcase).join(' ')}", command.description) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SupervisionGroup < ::Celluloid::SupervisionGroup | |
| supervise ActorOne, as: :actor_one | |
| end | |
| class ActorOne | |
| include Celluloid | |
| end | |
| class ActorTwo | |
| attr_reader :other_actor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2013-04-29T23:10:41Z] PID[66424] TID[oxf8pe1og] INFO: REST Gateway listening on 0.0.0.0:26100 | |
| /Users/reset/.rbenv/versions/1.9.3-p392/gemsets/berkshelf/gems/celluloid-io-0.13.1/lib/celluloid/io/reactor.rb:43: [BUG] Segmentation fault | |
| ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0] | |
| -- Control frame information ----------------------------------------------- | |
| c:0016 p:0207 s:0057 b:0055 l:000054 d:000054 METHOD /Users/reset/.rbenv/versions/1.9.3-p392/gemsets/berkshelf/gems/celluloid-io-0.13.1/lib/celluloid/io/reactor.rb:43 | |
| c:0015 p:0015 s:0049 b:0049 l:000048 d:000048 METHOD /Users/reset/.rbenv/versions/1.9.3-p392/gemsets/berkshelf/gems/celluloid-io-0.13.1/lib/celluloid/io/reactor.rb:21 | |
| c:0014 p:0092 s:0045 b:0045 l:000044 d:000044 METHOD /Users/reset/.rbenv/versions/1.9.3-p392/gemsets/berkshelf/gems/celluloid-io-0.13.1/lib/celluloid/io.rb:30 | |
| c:0013 p:0022 s:0040 b:0040 l:000039 d:000039 METHOD /Users/reset/.rbenv/versions/1.9.3-p392/gemsets/berkshelf/gems/celluloid-io-0.13.1/lib/celluloid/io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Berkshelf (2.0.0) | |
| Copyright 2012-2013 Riot Games | |
| Jamie Winsor (<[email protected]>) | |
| Josiah Kiehl (<[email protected]>) | |
| Michael Ivey (<[email protected]>) | |
| Justin Campbell (<[email protected]>) | |
| Seth Vargo (<[email protected]>) |