Module: Capistrano::Ec2RoleTag

Defined in:
lib/capistrano-ec2_role_tag.rb,
lib/capistrano/ec2_role_tag/version.rb,
lib/capistrano/ec2_role_tag/aws_ec2_loader.rb,
lib/capistrano/ec2_role_tag/aws_ec2_role_loader.rb

Defined Under Namespace

Classes: AwsEc2Loader, AwsEc2RoleLoader

Constant Summary collapse

VERSION =
"0.1.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.providerObject

Returns the value of attribute provider.



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

def provider
  @provider
end

.stageObject

Returns the value of attribute stage.



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

def stage
  @stage
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



8
9
10
11
12
# File 'lib/capistrano-ec2_role_tag.rb', line 8

def configure
  yield self
  self.stage = 'staging' if self.stage.nil?
  self.provider = Capistrano::Ec2RoleTag::AwsEc2RoleLoader.new(stage: self.stage)
end