Class: Automan::Cli::Baker

Inherits:
Thor
  • Object
show all
Defined in:
lib/automan/cli/baker.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/automan/cli/baker.rb', line 6

def self.exit_on_failure?
    return true
end

Instance Method Details

#createObject



28
29
30
31
32
33
# File 'lib/automan/cli/baker.rb', line 28

def create

  s = Automan::Ec2::Image.new(options)
  s.create
  s.prune_amis if options[:prune]
end

#uploadObject



57
58
59
60
61
# File 'lib/automan/cli/baker.rb', line 57

def upload

  s = Automan::Chef::Uploader.new(options)
  s.upload
end