Sha256: d151b1658ff1137368cef2093aea71c562b80862e20b07ad1acb7e006937cca6

Contents?: true

Size: 757 Bytes

Versions: 4

Compression:

Stored size: 757 Bytes

Contents

require 'rake'
require 'rake/testtask'

namespace :hatchet do
  task :setup_travis do
    puts "== Setting Up Travis =="
    ['bundle exec hatchet install',
     %Q{echo "\nHost heroku.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config},
     %Q{echo "\nHost github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config},
     'wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh',
     'ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa',
     'heroku keys:add',
     'heroku login'
    ].each do |command|
      puts "== Running: #{command}"
      `#{command}`
    end
    puts "== Done =="
  end

  task :teardown_travis do
    ['heroku keys:remove ~/.ssh/id_rsa'].each do |command|
      puts "== Running: #{command}"
      `#{command}`
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
heroku_hatchet-1.1.1 lib/hatchet/tasks.rb
heroku_hatchet-1.1.0 lib/hatchet/tasks.rb
heroku_hatchet-1.0.0 lib/hatchet/tasks.rb
heroku_hatchet-0.2.0 lib/hatchet/tasks.rb