Class: Lono::CLI

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

Instance Method Summary collapse

Instance Method Details

#bashify(path) ⇒ Object



27
28
29
# File 'lib/lono/cli.rb', line 27

def bashify(path)
  Lono::Bashify.new(:path => path).run
end

#generateObject



21
22
23
# File 'lib/lono/cli.rb', line 21

def generate
  Lono::DSL.new(options.clone).run
end

#new(project_root) ⇒ Object



11
12
13
# File 'lib/lono/cli.rb', line 11

def new(project_root)
  Lono::New.new(options.clone.merge(:project_root => project_root)).run
end

#versionObject



32
33
34
# File 'lib/lono/cli.rb', line 32

def version
  puts Lono::VERSION
end