Class: Greenhouse::Commands::Start

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/greenhouse/commands/start.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Command

included

Class Method Details

.usageObject



9
10
11
# File 'lib/greenhouse/commands/start.rb', line 9

def usage
  puts "usage: #{::Greenhouse::CLI.command_name} #{command_name} #{valid_arguments.to_s}"
end

Instance Method Details

#runObject



14
15
16
17
18
# File 'lib/greenhouse/commands/start.rb', line 14

def run
  Dir.chdir(Projects::path) do
    exec 'foreman start'
  end
end