Sha256: ba3803f50d59312eb84a4bfc054f4fbf20d5e5b9d32f3bc0b28fa6580df1561b

Contents?: true

Size: 629 Bytes

Versions: 16

Compression:

Stored size: 629 Bytes

Contents

require "bundler/gem_tasks"

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
  t.pattern = "spec/**/*_spec.rb"
end

desc 'Outpus some information about Vagrant middleware stack useful for development (use ACTION=action_name to filter out actions)'
task 'vagrant-stack' do
  require 'vagrant'
  Vagrant.actions.to_hash.each do |action, stack|
    next unless !ENV['ACTION'] || ENV['ACTION'] == action.to_s

    puts action
    stack.send(:stack).each do |middleware|
      puts "  #{middleware[0]}"
      puts "    -> #{middleware[1].inspect}" unless middleware[1].empty?
    end
  end
end

task :default => :spec

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
vagrant-notify-0.6.1 Rakefile
vagrant-notify-0.6.0 Rakefile
vagrant-notify-0.5.6 Rakefile
vagrant-notify-0.5.5 Rakefile
vagrant-notify-0.5.4 Rakefile
vagrant-notify-0.5.3 Rakefile
vagrant-notify-0.5.2 Rakefile
vagrant-notify-0.5.1 Rakefile
vagrant-notify-0.5.0 Rakefile
vagrant-notify-0.4.0 Rakefile
vagrant-notify-0.3.0 Rakefile
vagrant-notify-0.2.2 Rakefile
vagrant-notify-0.2.1 Rakefile
vagrant-notify-0.2.0 Rakefile
vagrant-notify-0.1.0 Rakefile
vagrant-notify-0.0.1 Rakefile