Class: Slappy::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/slappy/cli.rb

Instance Method Summary collapse

Instance Method Details

#new(dir_name = nil) ⇒ Object



9
10
11
# File 'lib/slappy/cli.rb', line 9

def new(dir_name = nil)
  build_command(:generator).call(dir_name)
end

#startObject



4
5
6
# File 'lib/slappy/cli.rb', line 4

def start
  build_command(:run).call
end

#versionObject



14
15
16
# File 'lib/slappy/cli.rb', line 14

def version
  puts Slappy::VERSION
end