Sha256: 02a26d1a212c2af4fa9170aa63aa3de3980a5a2c1b11659f2296912cdcc217ec

Contents?: true

Size: 969 Bytes

Versions: 11

Compression:

Stored size: 969 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new do |t|
  t.libs << "test"
  t.pattern = File.join("test", "**", "test_*.rb")
end

desc 'Default Task'
task :default => [ 'test:travis' ]

namespace :test do
  mock = ENV['FOG_MOCK'] || 'true'
  task :travis do
    sh("export FOG_MOCK=#{mock} && bundle exec shindont")
  end
end

namespace :google do
  namespace :smoke do
    desc "Smoke tests for Google Compute Engine."
    task :compute do
      puts "These smoke tests assume you have a file at ~/.fog which has your credentials for connecting to GCE."

      Dir.glob("./examples/*.rb").each do |file|
        puts "Running #{file}:"
        require file
        test
      end
    end
  end
end

# From http://erniemiller.org/2014/02/05/7-lines-every-gems-rakefile-should-have/
# with some modification.
task :console do
  require 'irb'
  require 'irb/completion'
  require 'fog/google'
  Fog.credential = :test
  ARGV.clear
  IRB.start
end

Version data entries

11 entries across 9 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/Rakefile
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/Rakefile
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/Rakefile
fog-google-0.1.3 Rakefile
fog-google-0.1.2 Rakefile
fog-google-0.1.1 Rakefile
fog-google-0.1.0 Rakefile
fog-google-0.0.9 Rakefile
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/Rakefile
fog-google-0.0.7 Rakefile
fog-google-0.0.6 Rakefile