Sha256: d704467514fa34e416bf66199bf726cf4016edbb004c569fd4fb11eed7640aba

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

module Capistrano
  module DSL
    module Stages
      def stages
        Dir[stage_definitions].map { |f| File.basename(f, ".rb") }
      end

      def stage_definitions
        stage_config_path.join("*.rb")
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-3.5.0 lib/capistrano/dsl/stages.rb