Sha256: 1655ac0746bb3934a944775733dbaca0b649d70adfb3c162b3418e17442c3803

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

require 'thor'
require 'yun/model/connection'

module Yun
  module CommandBase

    def connection
      @connection ||= Connection.new init_data
    end

    def init_data
      {
        :provider => "aws",
        :aws_access_key_id => Config.aws_access_key_id,
        :aws_secret_access_key => Config.aws_secret_access_key,
        :region => Config.region
      }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yun-0.0.6 lib/yun/commands/command_base.rb
yun-0.0.5 lib/yun/commands/command_base.rb
yun-0.0.4 lib/yun/commands/command_base.rb
yun-0.0.3 lib/yun/commands/command_base.rb