Class: KomradeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/komrade-client/komrade_generator.rb

Instance Method Summary collapse

Instance Method Details

#append_procfileObject



3
4
5
6
7
8
# File 'lib/komrade-client/komrade_generator.rb', line 3

def append_procfile
  File.open("Procfile", 'ab') do |file|
    file.write("komrade-worker: bundle exec rake komrade:work")
  end
  puts "A worker process has been added to your Procfile you will be billed accordingly."
end