Sha256: 979afa531af6e761b380f4565008b8f3541aa152b37c298cb7d4d67ae8dab337
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
require 'yaml' require 'active_support/core_ext/hash' module AwsEc2 class UserData include TemplateHelper include Util def initialize(options) @options = options end def run if File.exist?(@options[:name]) filename = File.basename(@options[:name], '.sh') end filename ||= @options[:name] path = "profiles/user-data/#{filename}.sh" puts erb_result(path) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-ec2-0.2.0 | lib/aws_ec2/user_data.rb |
aws-ec2-0.1.0 | lib/aws_ec2/user_data.rb |