Sha256: 087ed939f80f007b81434a67e9122bf81e4078f6734d0be84bb03deaa5fb2880

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

Contents

require 'rake_factory'

require_relative '../tasks/authentication/login'
require_relative '../tasks/authentication/ensure'

module RakeFly
  module TaskSets
    class Authentication < RakeFactory::TaskSet
      prepend RakeFactory::Namespaceable

      parameter :argument_names, default: []

      parameter :target, required: true
      parameter :concourse_url, required: true
      parameter :team, default: 'main'
      parameter :username
      parameter :password

      parameter :home_directory,
          default: RakeFactory::DynamicValue.new { |_| ENV['HOME'] }

      parameter :login_task_name, default: :login
      parameter :ensure_task_name, default: :ensure

      parameter :fly_ensure_task_name, default: :'fly:ensure'

      task Tasks::Authentication::Login,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.login_task_name
          }
      task Tasks::Authentication::Ensure,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.ensure_task_name
          }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rake_fly-2.8.0.pre.1 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.7.0 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.6.0.pre.1 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.5.0 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.4.0.pre.1 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.3.0 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.2.0.pre.8 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.2.0.pre.7 lib/rake_fly/task_sets/authentication.rb