Sha256: fd7c962b84776fa2860022175248d71902b2113940c63d23d55530d98587aad4

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

#!/usr/bin/env ruby
require 'chef'
require 'pry'

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib")) 

Chef::Config.from_file File.expand_path(ENV.fetch('KNIFE_CONFIG', '~/.chef/knife.rb'))

Dir.glob(File.dirname(__FILE__) + "/../lib/chef/knife/*.rb").each do |task|
  p = Pathname.new(task)
  require "chef/knife/#{p.basename}"
end

begin
  AWS.config(aws_access_key_id: Chef::Config[:knife][:aws_access_key_id], aws_secret_access_key: Chef::Config[:knife][:aws_secret_access_key])
rescue => e
  puts e.message
end

binding.pry

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
knife-rds-0.0.1 bin/console