Sha256: fc9e2d1109e85dcaf2e818f2ab4205de517eaeae91ac76fe423cd8faab3b55b2
Contents?: true
Size: 1.26 KB
Versions: 15
Compression:
Stored size: 1.26 KB
Contents
require 'ruby_fly' require 'rake_factory' module RakeFly module Tasks module Pipeline class Unpause < RakeFactory::Task default_name :unpause default_prerequisites RakeFactory::DynamicValue.new { |t| [t.fly_ensure_task_name, t.authentication_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 :home_directory, default: RakeFactory::DynamicValue.new { |_| ENV['HOME'] } parameter :fly_ensure_task_name, :default => :'fly:ensure' parameter :authentication_ensure_task_name, :default => :'authentication: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, environment: { "HOME" => t.home_directory }) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems