Class: Rcli
- Inherits:
-
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
#_installed_rcli_base?
Class Method Details
.script_config ⇒ Object
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_root ⇒ Object
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_app ⇒ Object
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
|
.type ⇒ Object
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
|