Sha256: 95a7ec1fd14c30908b95f13a89f201801d92c0fb1a1a1e961dd13f4f2f3e3e23
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require 'tagenv/version' require 'tagenv/constants' require 'tagenv/ec2/metadata' require 'tagenv/ec2/tag' require 'tagenv/cli' module Tagenv def self.load(prefix: '', instance_id: nil, provider: 'ec2') tag_hash = {} if provider == 'ec2' @ec2_tag = Ec2::Tag.new(prefix: prefix, instance_id: instance_id) tag_hash = @ec2_tag.get_tag_hash else raise "Unsupport provider [#{provider}]" end tag_hash.each do |k, v| ENV[k] = v end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tagenv-0.1.7 | lib/tagenv.rb |