Class: Engineyard::Hudson::Server

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



12
13
14
# File 'lib/engineyard-hudson/cli/server.rb', line 12

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

Instance Method Details

#attributesObject



20
21
22
23
# File 'lib/engineyard-hudson/cli/server.rb', line 20

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



16
17
18
# File 'lib/engineyard-hudson/cli/server.rb', line 16

def cookbooks
  directory "cookbooks"
end

#readmeObject



25
26
27
28
29
30
31
32
33
# File 'lib/engineyard-hudson/cli/server.rb', line 25

def readme
  say ""
  say "Finally:"
  say "* edit "; say "cookbooks/hudson_master/attributes/default.rb ", :yellow; say "as necessary."
  say "* run: "; say "ey recipes upload ", :green; say "# use --environment(-e) & --account(-c)"
  say "* run: "; say "ey recipes apply  ", :green; say "#   to select environment"
  say "* "; say "Boot your environment ", :yellow; say "if not already booted."
  say "When the recipe completes, your solo instance will host a Hudson CI!"
end