Sha256: 0bda6d6a50f3a41d1fe8a9cb13fd49d8f2e51a6c6fc399063fcbaff0497473ec

Contents?: true

Size: 602 Bytes

Versions: 19

Compression:

Stored size: 602 Bytes

Contents

require 'bundler/vendored_thor' unless defined?(Thor)
require 'bundler'

module Rundock
  module Gem
    class Helper < Bundler::GemHelper
      def install
        desc 'Run rundock with default configuration'
        task :rundock => 'rundock:do'

        namespace :rundock do
          desc 'Run rundock with scenariofile.(env:SCENARIO_FILE_PATH)'
          task 'do' do
            if ENV['SCENARIO_FILE_PATH']
              system("rundock do #{ENV['SCENARIO_FILE_PATH']}")
            else
              system('rundock do')
            end
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rundock-1.2.1 lib/rundock/gem/helper.rb
rundock-1.2.0 lib/rundock/gem/helper.rb
rundock-1.1.7 lib/rundock/gem/helper.rb
rundock-1.1.6 lib/rundock/gem/helper.rb
rundock-1.1.5 lib/rundock/gem/helper.rb
rundock-1.1.4 lib/rundock/gem/helper.rb
rundock-1.1.3 lib/rundock/gem/helper.rb
rundock-1.1.2 lib/rundock/gem/helper.rb
rundock-1.1.1 lib/rundock/gem/helper.rb
rundock-1.1.0 lib/rundock/gem/helper.rb
rundock-1.0.8 lib/rundock/gem/helper.rb
rundock-1.0.7 lib/rundock/gem/helper.rb
rundock-1.0.6 lib/rundock/gem/helper.rb
rundock-1.0.5 lib/rundock/gem/helper.rb
rundock-1.0.4 lib/rundock/gem/helper.rb
rundock-1.0.2 lib/rundock/gem/helper.rb
rundock-1.0.1 lib/rundock/gem/helper.rb
rundock-1.0.0 lib/rundock/gem/helper.rb
rundock-0.5.8 lib/rundock/gem/helper.rb