Class: Hap::Generators::Gemfile

Inherits:
Thor::Group
  • Object
show all
Includes:
Helpers
Defined in:
lib/hap/generators/gemfile.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



11
12
13
# File 'lib/hap/generators/gemfile.rb', line 11

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#create_cfg_fileObject



15
16
17
# File 'lib/hap/generators/gemfile.rb', line 15

def create_cfg_file
  template "templates/config/#{Hap::BACK_END}/Gemfile.erb", target_file
end