Class: Tinet::Command::Init

Inherits:
Base
  • Object
show all
Defined in:
lib/tinet/command/init.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Shell

#sh, #sudo

Constructor Details

This class inherits a constructor from Tinet::Command::Base

Instance Method Details

#runObject



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