Anthony Acquanita
2014-05-15 13:53:29 UTC
compute = Fog::Compute.new({
:provider => 'AWS'
})
puts compute.requests
sgp=compute.describe_security_groups({'description' => 'private'}).body
id=sgp['securityGroupInfo'][0]['groupId']
compute.authorize_security_group_ingress('GroupId' => id,
'IpPermissions' => [
{
'IpProtocol' => 'tcp',
'FromPort' => 22,
'ToPort' => 22
}
])
#<Excon::Response:0x0000001a20bf10
@data={:body=>{"requestId"=>"1576cfee-8a10-4575-999b-ec68228cc30e",
"return"=>true},
:provider => 'AWS'
})
puts compute.requests
sgp=compute.describe_security_groups({'description' => 'private'}).body
id=sgp['securityGroupInfo'][0]['groupId']
compute.authorize_security_group_ingress('GroupId' => id,
'IpPermissions' => [
{
'IpProtocol' => 'tcp',
'FromPort' => 22,
'ToPort' => 22
}
])
#<Excon::Response:0x0000001a20bf10
@data={:body=>{"requestId"=>"1576cfee-8a10-4575-999b-ec68228cc30e",
"return"=>true},
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.