Sha256: 265d197e8b9f852bbc2378ab658eb02431a8e8563c1f896dd0b72fbd5da15ac8

Contents?: true

Size: 1.26 KB

Versions: 5

Compression:

Stored size: 1.26 KB

Contents

require 'rake_factory'

require_relative '../tasks/pipeline/get'
require_relative '../tasks/pipeline/set'
require_relative '../tasks/pipeline/unpause'
require_relative '../tasks/pipeline/push'

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

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

      parameter :vars
      parameter :var_files
      parameter :non_interactive

      parameter :get_task_name, :default => :get
      parameter :set_task_name, :default => :set
      parameter :unpause_task_name, :default => :unpause
      parameter :push_task_name, :default => :push

      task Tasks::Pipeline::Get,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.get_task_name
          }
      task Tasks::Pipeline::Set,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.set_task_name
          }
      task Tasks::Pipeline::Unpause,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.unpause_task_name
          }
      task Tasks::Pipeline::Push,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.push_task_name
          }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rake_fly-2.2.0.pre.3 lib/rake_fly/task_sets/pipeline.rb
rake_fly-2.2.0.pre.2 lib/rake_fly/task_sets/pipeline.rb
rake_fly-2.2.0.pre.1 lib/rake_fly/task_sets/pipeline.rb
rake_fly-2.1.0 lib/rake_fly/task_sets/pipeline.rb
rake_fly-2.0.0.pre.pre.1 lib/rake_fly/task_sets/pipeline.rb