Sha256: adcef8a75b112ab3bb7809094dab6bb015538b427665eabcd165e534917f1db4

Contents?: true

Size: 229 Bytes

Versions: 14

Compression:

Stored size: 229 Bytes

Contents

module Capistrano
  module DSL
    module Stages

      def stages
        Dir['config/deploy/*.rb'].map { |f| File.basename(f, '.rb') }
      end

      def stage_set?
        !!fetch(:stage, false)
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
capistrano-3.0.1 lib/capistrano/dsl/stages.rb
capistrano-3.0.0 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre14 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre13 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre12 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre11 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre10 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre7 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre6 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre5 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre4 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre3 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre2 lib/capistrano/dsl/stages.rb
capistrano-3.0.0.pre lib/capistrano/dsl/stages.rb