Class: Munge::Cli::Commands::Init
- Inherits:
-
Object
- Object
- Munge::Cli::Commands::Init
- Includes:
- Thor::Actions, Thor::Base
- Defined in:
- lib/munge/cli/commands/init.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(path) ⇒ Init
constructor
A new instance of Init.
Constructor Details
#initialize(path) ⇒ Init
Returns a new instance of Init.
12 13 14 15 |
# File 'lib/munge/cli/commands/init.rb', line 12 def initialize(path) self. = {} self.destination_root = File.(path) end |
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/munge/cli/commands/init.rb', line 8 def self.source_root File.("../../../../../seeds", __FILE__) end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/munge/cli/commands/init.rb', line 17 def call directory(".", destination_root) inside(destination_root) do run_bundle("install") run_bundle("binstub munge") end end |