Class: Scribbler::Executable
- Inherits:
-
Object
- Object
- Scribbler::Executable
- Defined in:
- lib/scribbler/executable.rb
Instance Method Summary collapse
- #cli ⇒ Object
- #config ⇒ Object
-
#install(options = {}) ⇒ Object
Runs installer, makes dirs and copy’s template files.
Instance Method Details
#cli ⇒ Object
18 19 20 |
# File 'lib/scribbler/executable.rb', line 18 def cli CLIClient.new end |
#config ⇒ Object
14 15 16 |
# File 'lib/scribbler/executable.rb', line 14 def config Scribbler.config end |
#install(options = {}) ⇒ Object
Runs installer, makes dirs and copy’s template files
options - Options from command in shell
:path - changes the path its installing config files too
8 9 10 11 12 |
# File 'lib/scribbler/executable.rb', line 8 def install(={}) install_path = [:path] || config.default_install_path cli.run_command "mkdir -p #{install_path}" cli.mass_copy config.templates, install_path end |