Class: Munge::Cli::Commands::Init

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

Class Method Summary collapse

Instance Method Summary collapse

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.options = {}
  self.destination_root = File.expand_path(path)
end

Class Method Details

.source_rootObject



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

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

Instance Method Details

#callObject



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