Class: Capistrano::Ec2RoleTag::AwsEc2RoleLoader
- Inherits:
-
Object
- Object
- Capistrano::Ec2RoleTag::AwsEc2RoleLoader
- Defined in:
- lib/capistrano/ec2_role_tag/aws_ec2_role_loader.rb
Instance Method Summary collapse
- #fetch(role) ⇒ Object
-
#initialize(options = {}) ⇒ AwsEc2RoleLoader
constructor
A new instance of AwsEc2RoleLoader.
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( = {}) @provider = AwsEc2Loader.new(region: [:region]) @stage = [: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 |