Class: Artoo::Commands::Commands
- Inherits:
-
Thor
- Object
- Thor
- Artoo::Commands::Commands
show all
- Includes:
- Utility, Thor::Actions
- Defined in:
- lib/artoo/commands/commands.rb
Class Method Summary
collapse
Methods included from Utility
#classify, #constantize, #current_class, #current_instance, #os, #random_string, #underscore
Class Method Details
.banner(command, namespace = nil, subcommand = false) ⇒ Object
10
11
12
|
# File 'lib/artoo/commands/commands.rb', line 10
def self.banner(command, namespace = nil, subcommand = false)
"#{basename} #{@package_name} #{command.usage}"
end
|
.install_dir ⇒ Object
14
15
16
|
# File 'lib/artoo/commands/commands.rb', line 14
def self.install_dir
ENV['GEM_HOME'] + "/.artoo/commands"
end
|