Class: Gurk::Cli

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/gurk/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/gurk/cli.rb', line 8

def self.source_root
  File.dirname(__FILE__) 
end

Instance Method Details

#bundle_installObject



16
17
18
# File 'lib/gurk/cli.rb', line 16

def bundle_install
  system("cd #{name} && bundle install")
end

#setupObject



12
13
14
# File 'lib/gurk/cli.rb', line 12

def setup
  directory "../templates", name, recursive: true
end