Sha256: 30b5b3c41b25af48e2da8c376a08b28f3ec72e1f1151451f885b948092c993a2

Contents?: true

Size: 879 Bytes

Versions: 2

Compression:

Stored size: 879 Bytes

Contents

namespace :heroku do
  desc "Configure Heroku"
  task :setup, :name do |t, args|
    app_name = args.name
    system "git init"
    system "heroku info || heroku create #{app_name}"
    system "git add ."
    system "git commit -a -m 'Initial Commit'"
    # system "heroku addons:add cron:daily"
    system "heroku addons:add deployhooks:email \
        recipient=heroku@inspiresynergy.com \
        subject='[#{app_name}] Deployed' \
        body='{{user}} deployed #{app_name} successfully'"
    system "heroku addons:add piggyback_ssl"
    system "heroku addons:add newrelic:bronze"
  end
  
  desc "Deploy to Heroku"
  task :deploy do 
    system "git add ."
    system "git commit -a -m 'Heroku Release'"
    system "git push heroku master"
  end
  
  desc "Deploy and Migrate to Heroku"
  task :deploy_migrate => :deploy do 
    system "heroku rake db:migrate"
  end
  
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
somatics3-0.0.10 lib/generators/somatics/install/templates/lib/tasks/heroku.rake
somatics3-generators-0.0.10 lib/generators/somatics/install/templates/lib/tasks/heroku.rake