Class: Munge::Cli::Commands::Update

Inherits:
Object
  • Object
show all
Includes:
Thor::Actions, Thor::Base
Defined in:
lib/munge/cli/commands/update.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_bootloader, path) ⇒ Update

Returns a new instance of Update.



12
13
14
15
# File 'lib/munge/cli/commands/update.rb', line 12

def initialize(_bootloader, path)
  self.options = {}
  self.destination_root = File.expand_path(path)
end

Class Method Details

.source_rootObject



8
9
10
# File 'lib/munge/cli/commands/update.rb', line 8

def self.source_root
  File.expand_path("../../../../../seeds", __FILE__)
end

Instance Method Details

#callObject



17
18
19
20
# File 'lib/munge/cli/commands/update.rb', line 17

def call
  directory("lib", File.expand_path("lib", destination_root))
  copy_file("setup.rb")
end