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

#runObject



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

def run
  check_version
  if story
    story.start
  else
    Command.error "No name/url provided"
  end
end