29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/fum/application.rb', line 29
def start
global_options = process_command_line
@beanstalk = Fog::AWS[:beanstalk]
command = commands[@command_name.to_sym]
if global_options[:verbose]
puts "Loading definition file #{@filename}"
end
@main_decl = load_file(@filename)
if command
options = parse_command_options(@command_name.to_sym)
options.merge!(global_options)
run_command(@command_name.to_sym, options)
else
parser.die "Unknown command '#{@command_name}'", nil
end
end
|