Class: Cp8Cli::Commands::Start

Inherits:
Object
  • Object
show all
Defined in:
lib/cp8_cli/commands/start.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Start

Returns a new instance of Start.



7
8
9
# File 'lib/cp8_cli/commands/start.rb', line 7

def initialize(name)
  @name = name
end

Instance Method Details

#run ⇒ Object



11
12
13
14
15
16
17
# File 'lib/cp8_cli/commands/start.rb', line 11

def run
  check_version
  story.branch.checkout
  story.start
rescue Trello::Error => error
  Command.error(error.message)
end