Class: Inits::CLI

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

Instance Method Summary collapse

Instance Method Details

#helpObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/inits/cli.rb', line 17

def help
  puts <<-HELP
  Manual:
    Commands:
      bundle exec exe/inits on

    Options:
      -v: verbose
      -brew_path: brew's local path, default is `#{options[:brew_path]}`
      -rbenv_path: rbenv's local path, default is `#{options[:rbenv_path]}`
      -rbenv_installed: rbenv's local installed ruby versions, default is `true`
      -rbenv_listing: rbenv's all ruby versions, default is `false`
  HELP
end

#onObject



35
36
37
38
39
# File 'lib/inits/cli.rb', line 35

def on
  p options if options[:verbose]
  brew
  rbenv
end