Class: Hightouch::AppGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/hightouch/app_generator.rb', line 7

def self.source_root
  File.join(File.dirname(__FILE__), '../../')
end

Instance Method Details

#create_app_dirObject



11
12
13
# File 'lib/hightouch/app_generator.rb', line 11

def create_app_dir
  empty_directory(path)
end

#create_filesObject



15
16
17
18
19
20
21
22
23
# File 'lib/hightouch/app_generator.rb', line 15

def create_files
  directory 'source', "#{path}/source"

  copy_file 'config.rb', "#{path}/config.rb"
  copy_file 'Gemfile', "#{path}/Gemfile"
  copy_file 'Gemfile.lock', "#{path}/Gemfile.lock"
  copy_file 'README.md', "#{path}/README.md"
  copy_file 'rvmrc.example', "#{path}/rvmrc.example"
end