Class: Ruflow::Tasks::Setup

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/ruflow/tasks/setup.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/ruflow/tasks/setup.rb', line 8

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#bundle_projectObject



16
17
18
19
20
# File 'lib/ruflow/tasks/setup.rb', line 16

def bundle_project
  inside(project_name) do
    run('bundler install')
  end
end

#create_lib_fileObject



12
13
14
# File 'lib/ruflow/tasks/setup.rb', line 12

def create_lib_file
  directory '../../../setup_files', project_name
end