Class: Rcli

Inherits:
Object
  • Object
show all
Includes:
Installation
Defined in:
lib/rcli.rb,
lib/core/thor_actions.rb,
lib/core/actions/create_file.rb,
lib/core/thor_actions/directory.rb,
lib/core/actions/empty_directory.rb,
lib/core/shared/rcli_installation.rb,
lib/core/thor_actions/create_file.rb,
lib/core/thor_actions/empty_directory.rb,
lib/core/thor_actions/inject_into_file.rb,
lib/core/thor_actions/file_manipulation.rb

Defined Under Namespace

Modules: Actions, Installation

Constant Summary collapse

SRC_PATH =
File.expand_path('~/lib/ruby/rcli_framework')
GEM_ROOT =
File.dirname(File.dirname(__FILE__))
GEM_LIB =
GEM_ROOT + DS + 'lib'
GEM_BIN =
GEM_ROOT + DS + 'bin'
GEM_CONFIG =
GEM_ROOT + DS + 'lib' + DS + 'config'
RCLI_DOTFOLDER =
File.expand_path("~" + DS + '.rcli')
RCLI_CONFIG =
YAML.load_file(GEM_LIB + DS + 'config' + DS + 'application.yml')
@@trace_app =
false
@@script_root =
'uninitialized'
@@script_config =
nil
@@type =
:app

Class Method Summary collapse

Methods included from Installation

#_installed_rcli_base?

Class Method Details

.goObject



56
# File 'lib/rcli.rb', line 56

def self.go ; Commander.new.go ; end

.script_configObject



49
# File 'lib/rcli.rb', line 49

def self.script_config ; @@script_config ; end

.script_config=(sc) ⇒ Object



50
# File 'lib/rcli.rb', line 50

def self.script_config=(sc) ; @@script_config = sc ; end

.script_rootObject



40
# File 'lib/rcli.rb', line 40

def self.script_root ; @@script_root ; end

.script_root=(sr) ⇒ Object



41
42
43
44
45
46
47
48
# File 'lib/rcli.rb', line 41

def self.script_root=(sr) ; 
  @@script_root = sr ; 
  if @@type == :app
    @@script_config = YAML.load_file(sr + DS + 'config' + DS + 'application.yml')
  else
    @@script_config = RCLI_CONFIG
  end
end

.trace_appObject



51
# File 'lib/rcli.rb', line 51

def self.trace_app ; @@trace_app ; end

.trace_app=(ta) ⇒ Object



52
# File 'lib/rcli.rb', line 52

def self.trace_app=(ta) ; @@trace_app = ta ; end

.typeObject



53
# File 'lib/rcli.rb', line 53

def self.type ; @@type ; end

.type=(t) ⇒ Object



54
# File 'lib/rcli.rb', line 54

def self.type=(t) ; @@type = t ; end