Sha256: 6ddb23e32cb67d4ee4e149f30b8a8676b2e06a355e1312b27b0017cdf06ecaf5

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

Capistrano::Configuration.instance(true).load do
  namespace :multimarket do
    desc "[internal] Ensure that a configuration has been selected"
    task :ensure do
      unless exists?(:config_name)
        puts "No configuration specified. Please specify one of:"
        config_names.each { |name| puts "  * #{name}" }
        puts "(e.g. `cap #{config_names.first} #{ARGV.last}')"
        abort
      end
    end
  end

  on :start, 'multimarket:ensure', :except => config_names
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-multimarket-0.0.3 lib/capistrano/multi_market/ensure.rb
capistrano-multimarket-0.0.2 lib/capistrano/multi_market/ensure.rb
capistrano-multimarket-0.0.1 lib/capistrano/multi_market/ensure.rb