Module: Calicli

Defined in:
lib/calicli.rb,
lib/calicli/cli.rb,
lib/calicli/version.rb,
lib/calicli/cli/base.rb,
lib/calicli/configuration.rb

Defined Under Namespace

Modules: CLI Classes: Configuration, Error

Constant Summary collapse

VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.app_directoryObject



21
22
23
24
25
# File 'lib/calicli.rb', line 21

def self.app_directory
  dir = File.join(Calicli.home_dir,".calicli")
  FileUtils.mkdir_p dir unless File.exists?(dir)
  dir
end

.configObject



27
28
29
# File 'lib/calicli.rb', line 27

def self.config
  @config ||= Calicli::Configuration.new
end

.home_dirObject



17
18
19
# File 'lib/calicli.rb', line 17

def self.home_dir
  Dir.home
end