Module: Flucti::CLI

Extended by:
CLI
Included in:
CLI
Defined in:
lib/flucti/cli.rb

Instance Method Summary collapse

Instance Method Details

#startObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/flucti/cli.rb', line 8

def start
  adjust_environment
  reinterpret_help_option
  Flucti.boot
  
  cli = Capistrano::CLI.new(ARGV)
  cli.parse_options!
  cli.options[:verbose] = Capistrano::Logger::INFO
  cli.execute!
end

#tasksObject



19
20
21
22
23
24
# File 'lib/flucti/cli.rb', line 19

def tasks
  adjust_environment
  config = Capistrano::Configuration.new
  config.load File.dirname(__FILE__) + '/tasks.rb'
  return config
end