class Contracto::Command::Start

Public Class Methods

new(args) click to toggle source
# File lib/contracto/command/start.rb, line 5
def initialize(args)
  puts 'starting contracto server...'
  if args.first
    @strategy = Contracto::Command::Start::Remote.new(args.first)
  else
    @strategy = Contracto::Command::Start::Local.new
  end
end

Public Instance Methods

execute() click to toggle source
# File lib/contracto/command/start.rb, line 14
def execute
  @strategy.execute
end