Sha256: 91479c271447124f6c2cbe03c69dcabbefb929af0278f881e42ab61d5bb98c38

Contents?: true

Size: 760 Bytes

Versions: 7

Compression:

Stored size: 760 Bytes

Contents

require 'ruby_fly'
require 'rake_factory'

module RakeFly
  module Tasks
    class GetPipeline < RakeFactory::Task
      default_name :get_pipeline
      default_prerequisites ->(t) { [t.ensure_task_name] }
      default_description ->(t) do
        pipeline = t.pipeline || '<derived>'
        target = t.target || '<derived>'

        "Get pipeline #{pipeline} for target #{target}"
      end

      parameter :target, :required => true
      parameter :pipeline, :required => true

      parameter :ensure_task_name, :default => :'fly:ensure'

      action do |t|
        puts "Getting pipeline #{t.pipeline} for target #{t.target}..."
        RubyFly.get_pipeline(
            target: t.target,
            pipeline: t.pipeline)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rake_fly-1.5.0 lib/rake_fly/tasks/get_pipeline.rb
rake_fly-1.4.0.pre.1 lib/rake_fly/tasks/get_pipeline.rb
rake_fly-1.3.0 lib/rake_fly/tasks/get_pipeline.rb
rake_fly-1.2.0.pre.1 lib/rake_fly/tasks/get_pipeline.rb
rake_fly-1.1.0 lib/rake_fly/tasks/get_pipeline.rb
rake_fly-1.0.0.pre.pre.3 lib/rake_fly/tasks/get_pipeline.rb
rake_fly-1.0.0.pre.pre.2 lib/rake_fly/tasks/get_pipeline.rb