Sha256: 65c8ee1caff730d66255505873fca8a7f5a23ef497293ed7d2faebc571ce9b91
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
require 'capistrano/ec2_role_tag/version' require 'capistrano/ec2_role_tag/aws_ec2_role_loader' module Capistrano module Ec2RoleTag class << self attr_accessor :provider, :stage def configure yield self self.stage = 'staging' if self.stage.nil? self.provider = Capistrano::Ec2RoleTag::AwsEc2RoleLoader.new(stage: self.stage) end end end class Configuration def ec2_by_role(role) if Capistrano::Ec2RoleTag.provider.nil? Capistrano::Ec2RoleTag.configure { |configure| configure.stage = fetch(:stage) } end Capistrano::Ec2RoleTag.provider.fetch(role) end end end extend Capistrano::Ec2RoleTag
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capistrano-ec2_role_tag-0.0.6 | lib/capistrano-ec2_role_tag.rb |
capistrano-ec2_role_tag-0.0.4 | lib/capistrano-ec2_role_tag.rb |
capistrano-ec2_role_tag-0.0.2 | lib/capistrano-ec2_role_tag.rb |