Class: Ruboty::Gen::CLI

Inherits:
Bundler::CLI
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/ruboty/gen/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_pathsObject



18
19
20
# File 'lib/ruboty/gen/cli.rb', line 18

def self.source_paths
  [File.expand_path('../../../templates', __dir__)]
end

.startObject



11
12
13
14
15
16
# File 'lib/ruboty/gen/cli.rb', line 11

def self.start(*)
  super
rescue Exception => e
  Bundler.ui = Bundler::UI::Shell.new
  raise e
end

Instance Method Details

#gem(name, *actions) ⇒ Object



24
25
26
27
28
# File 'lib/ruboty/gen/cli.rb', line 24

def gem(name, *actions)
  actions = [name] if actions.size.zero?
  Bundler::CLI::Gem.new(options, "ruboty-#{name}", self).run
  Ruboty::Gen::Gem.new(options, name, actions, self).run
end