Sha256: 5ce59ce369b243a50ae9c054f33faaa43a8d7f91a66d52e762135690a4060974

Contents?: true

Size: 1.3 KB

Versions: 9

Compression:

Stored size: 1.3 KB

Contents

require 'rake_factory'

require_relative '../tasks/get_pipeline'
require_relative '../tasks/set_pipeline'
require_relative '../tasks/unpause_pipeline'

module RakeFly
  module TaskSets
    class Pipeline < RakeFactory::TaskSet
      parameter :argument_names, default: []

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

      parameter :vars
      parameter :var_files
      parameter :non_interactive

      parameter :get_pipeline_task_name, :default => :get_pipeline
      parameter :set_pipeline_task_name, :default => :set_pipeline
      parameter :unpause_pipeline_task_name, :default => :unpause_pipeline
      parameter :push_pipeline_task_name, :default => :push_pipeline

      task Tasks::GetPipeline,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.get_pipeline_task_name
          }
      task Tasks::SetPipeline,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.set_pipeline_task_name
          }
      task Tasks::UnpausePipeline,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.unpause_pipeline_task_name
          }
      task Tasks::PushPipeline,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.push_pipeline_task_name
          }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rake_fly-1.13.0 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.12.0.pre.2 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.12.0.pre.1 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.11.0 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.10.0.pre.1 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.9.0 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.8.0.pre.1 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.7.0 lib/rake_fly/task_sets/pipeline.rb
rake_fly-1.6.0.pre.1 lib/rake_fly/task_sets/pipeline.rb