Sha256: 6203c8aea83f5b4b38160150f5b4302bb058ca443603b4e9feeaf6dd975f581a

Contents?: true

Size: 631 Bytes

Versions: 6

Compression:

Stored size: 631 Bytes

Contents

require "bundler/gem_tasks"

require 'rake/testtask'

task :default => :test

Rake::TestTask.new do |task|
  task.name = :test
  task.test_files = FileList['test/test*.rb']
end

task :cache, [:api_key] do |task, args|
  unless args.api_key
    puts('cache requires an api key, please call as `cache[api_key]`')
  else
    require "#{File.dirname(__FILE__)}/lib/heroku/api"
    heroku = Heroku::API.new(:api_key => args.api_key)
    data = Heroku::API::OkJson.encode(heroku.get_addons.body)
    File.open("#{File.dirname(__FILE__)}/lib/heroku/api/mock/cache/get_addons.json", 'w') do |file|
      file.write(data)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
heroku-api-0.1.7 Rakefile
heroku-api-0.1.6 Rakefile
heroku-api-0.1.5 Rakefile
heroku-api-0.1.4 Rakefile
heroku-api-0.1.3 Rakefile
heroku-api-0.1.2 Rakefile