Class: Tooler::CLI
Instance Method Summary collapse
-
#initialize(args) ⇒ CLI
constructor
A new instance of CLI.
- #start ⇒ Object
Methods included from Template
#config_ru, #copy_template_cuba, #copy_template_sinatra, #create_dir, #file_read, #file_write, #gemfile, #gitignore, #license, #procfile, #readme, #template
Constructor Details
#initialize(args) ⇒ CLI
Returns a new instance of CLI.
6 7 8 9 10 11 12 13 |
# File 'lib/tooler/cli.rb', line 6 def initialize args @options = {template: "", name: ""} parse args[:arguments] @options[:pwd] = ::FileUtils.pwd + "/" @options[:name] = @options[:pwd].split('/').last @options[:root_path] = Tooler.root @options[:template_path] = @options[:root_path] + "/templates/" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method