Sha256: 7450f4c0552fda08c1b041fdc6cbe0e97ec889f4bb4bddcdaeec41bfe656730c
Contents?: true
Size: 865 Bytes
Versions: 2
Compression:
Stored size: 865 Bytes
Contents
require "bundler/gem_tasks" gem 'cfer' require 'cfer' require 'highline' Cfer::LOGGER.level = Logger::DEBUG task :default => [:spec] task :config_aws, [:profile] do |t, args| Aws.config.update region: ENV['AWS_REGION'] || 'us-east-1', credentials: Aws::SharedCredentials.new(profile_name: ENV['AWS_PROFILE'] || 'default') end task :vpc => :config_aws do |t, args| Cfer.converge! 'vpc', template: 'examples/vpc.rb', follow: true end task :describe_vpc => :config_aws do Cfer.describe! 'vpc' end task :instance => :config_aws do |t, args| key_pair = ask("Enter your EC2 KeyPair name: ") Cfer.converge! 'instance', template: 'examples/instance.rb', parameters: { :KeyName => key_pair }, follow: true end task :describe_instance => :config_aws do Cfer.describe! 'instance' end task :converge => [:vpc, :instance]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cfer-0.1.3 | Rakefile |
cfer-0.1.1 | Rakefile |