Class: Hap::Generators::Procfile

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#create_procfileObject



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

def create_procfile
  template "templates/config/#{type}/Procfile.erb", 
  "#{Hap.app_root}/#{target}/#{app}/Procfile"
end