Class: Xezat::Command::Prep

Inherits:
Object
  • Object
show all
Includes:
Xezat
Defined in:
lib/xezat/command/prep.rb

Constant Summary

Constants included from Xezat

Xezat::CONFIG_FILE, DATA_DIR, REPOSITORY_DIR, ROOT_DIR, TEMPLATE_DIR, VERSION

Instance Method Summary collapse

Methods included from Xezat

#bashvar, #config, #packages, #variables

Constructor Details

#initialize(options, cygport) ⇒ Prep

Returns a new instance of Prep.



13
14
15
16
# File 'lib/xezat/command/prep.rb', line 13

def initialize(options, cygport)
  @options = options
  @cygport = cygport
end

Instance Method Details

#executeObject



18
19
20
21
22
23
24
# File 'lib/xezat/command/prep.rb', line 18

def execute
  Xezat.logger.debug('Start prep')
  invoke_cygport_command('fetch')
  invoke_cygport_command('prep')
  copy_readme_if_exists
  Xezat.logger.debug('End prep')
end