Sha256: 6ae0d502a12a7b6f9ab68b5c81963c783fc687caebe117abc66f45e8963aa9f3

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 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 :backend, default: RakeFly::Tasks::Authentication::Login::ApiBackend
      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

7 entries across 7 versions & 1 rubygems

Version Path
rake_fly-2.10.0.pre.2 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.10.0.pre.1 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.9.0 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.8.0.pre.5 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.8.0.pre.4 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.8.0.pre.3 lib/rake_fly/task_sets/authentication.rb
rake_fly-2.8.0.pre.2 lib/rake_fly/task_sets/authentication.rb