Class: Artoo::Commands::Commands

Inherits:
Thor
  • Object
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, #remove_keys, #underscore

Class Method Details



11
12
13
# File 'lib/artoo/commands/commands.rb', line 11

def self.banner(command, namespace = nil, subcommand = false)
  "#{basename} #{@package_name} #{command.usage}"
end

.install_dirObject



15
16
17
# File 'lib/artoo/commands/commands.rb', line 15

def self.install_dir
  "#{ install_path }/.artoo/commands"
end

.install_pathObject



19
20
21
# File 'lib/artoo/commands/commands.rb', line 19

def self.install_path
  ENV["GEM_HOME"] || ENV["RBENV_ROOT"] || Dir.home(Etc.getlogin)
end