Sha256: f34f82b5709f5b6f57d5a679b2f5dec72941497c94453ecf0f7062c3ee5d1f43
Contents?: true
Size: 1.07 KB
Versions: 9
Compression:
Stored size: 1.07 KB
Contents
require 'ruby_fly' require 'rake_factory' module RakeFly module Tasks class SetPipeline < RakeFactory::Task default_name :set_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>' "Set pipeline #{pipeline} for target #{target}" } parameter :target, :required => true parameter :pipeline, :required => true parameter :config, :required => true parameter :vars parameter :var_files parameter :non_interactive parameter :ensure_task_name, :default => :'fly:ensure' action do |t| puts "Setting pipeline #{t.pipeline} for target #{t.target}..." RubyFly.set_pipeline( target: t.target, pipeline: t.pipeline, config: t.config, vars: t.vars, var_files: t.var_files, non_interactive: t.non_interactive) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems