Class: Tinet::Command::Init
- Inherits:
-
Base
- Object
- Base
- Tinet::Command::Init
show all
- Defined in:
- lib/tinet/command/init.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Methods included from Shell
#sh, #sudo
Instance Method Details
#run ⇒ Object
9
10
11
12
13
14
|
# File 'lib/tinet/command/init.rb', line 9
def run
template = File.join(Tinet::ROOT, 'spec.template.yml')
specfile = Tinet::DEFAULT_SPECFILE_PATH
FileUtils.cp(template, specfile)
logger.info 'Initialized. Check spec.yml'
end
|