Class: Engineyard::Hudson::InstallServer

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/engineyard-hudson/cli/install_server.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



10
11
12
# File 'lib/engineyard-hudson/cli/install_server.rb', line 10

def self.source_root
  File.join(File.dirname(__FILE__), "install_server", "templates")
end

Instance Method Details

#attributesObject



18
19
20
21
# File 'lib/engineyard-hudson/cli/install_server.rb', line 18

def attributes
  @plugins = %w[git github rake ruby greenballs envfile] + (options[:plugins] || '').strip.split(/\s*,\s*/)
  template "attributes.rb.tt", "cookbooks/hudson_master/attributes/default.rb"
end

#cookbooksObject



14
15
16
# File 'lib/engineyard-hudson/cli/install_server.rb', line 14

def cookbooks
  directory "cookbooks"
end