Class: Itamae::Generators::Project

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/itamae/generators/project.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/itamae/generators/project.rb', line 9

def self.source_root
  File.dirname(__FILE__) + '/templates/project'
end

Instance Method Details

#bundleObject



17
18
19
# File 'lib/itamae/generators/project.rb', line 17

def bundle
  run 'bundle install'
end

#copy_filesObject



13
14
15
# File 'lib/itamae/generators/project.rb', line 13

def copy_files
  directory '.'
end