Class: Orats::CLI

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

Overview

thor driven command line interface

Instance Method Summary collapse

Instance Method Details

#new(target_path) ⇒ Object



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

def new(target_path)
  Commands::New.new(target_path, options).init
end

#templatesObject



17
18
19
# File 'lib/orats/cli.rb', line 17

def templates
  Commands::New.new.available_templates
end

#versionObject



23
24
25
# File 'lib/orats/cli.rb', line 23

def version
  puts "orats version #{VERSION}"
end