Class: Capistrano::Ec2RoleTag::AwsEc2RoleLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/ec2_role_tag/aws_ec2_role_loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ AwsEc2RoleLoader

Returns a new instance of AwsEc2RoleLoader.



6
7
8
9
# File 'lib/capistrano/ec2_role_tag/aws_ec2_role_loader.rb', line 6

def initialize(options = {})
  @provider = AwsEc2Loader.new(region: options[:region])
  @stage = options[:stage]
end

Instance Method Details

#fetch(role) ⇒ Object



10
11
12
# File 'lib/capistrano/ec2_role_tag/aws_ec2_role_loader.rb', line 10

def fetch(role)
  @provider.fetch(stage: @stage, role: role)
end