Module: Yun::CommandBase

Included in:
ImageCommand, NodeCommand, YunCommand
Defined in:
lib/yun/commands/command_base.rb

Instance Method Summary collapse

Instance Method Details

#connectionObject



7
8
9
# File 'lib/yun/commands/command_base.rb', line 7

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

#init_dataObject



11
12
13
14
15
16
17
18
# File 'lib/yun/commands/command_base.rb', line 11

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