Sha256: 8f7404510cfa3a4e935a05bef3d162648e5999a09d3fc171114f9bf1d299c540
Contents?: true
Size: 893 Bytes
Versions: 4
Compression:
Stored size: 893 Bytes
Contents
require 'ruby_fly' require 'rake_factory' module RakeFly module Tasks class UnpausePipeline < RakeFactory::Task default_name :unpause_pipeline default_prerequisites RakeFactory::DynamicValue.new { |t| [t.ensure_task_name] } default_description RakeFactory::DynamicValue.new { |t| pipeline = t.pipeline || '<derived>' target = t.target || '<derived>' "Unpause pipeline #{pipeline} for target #{target}" } parameter :target, :required => true parameter :team parameter :pipeline, :required => true parameter :ensure_task_name, :default => :'fly:ensure' action do |t| puts "Unpausing pipeline #{t.pipeline} for target #{t.target}..." RubyFly.unpause_pipeline( target: t.target, team: t.team, pipeline: t.pipeline) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems