Class: Munge::Cli::Commands::Update
- Inherits:
-
Object
- Object
- Munge::Cli::Commands::Update
- Includes:
- Thor::Actions, Thor::Base
- Defined in:
- lib/munge/cli/commands/update.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(_bootloader, path) ⇒ Update
constructor
A new instance of Update.
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. = {} self.destination_root = File.(path) end |
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/munge/cli/commands/update.rb', line 8 def self.source_root File.("../../../../../seeds", __FILE__) end |
Instance Method Details
#call ⇒ Object
17 18 19 20 |
# File 'lib/munge/cli/commands/update.rb', line 17 def call directory("lib", File.("lib", destination_root)) copy_file("setup.rb") end |