qc.rb 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qc.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae08ba1cf263702568ebd4ff9b7f59b18cc1c1ba
|
4
|
+
data.tar.gz: ae80e5630812e582d9c33d6e1c832fcc488a6954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf07fade57e80029a36f097d038daea0e80ce7e80b8f689594390a5e14283d64e11a9273c55d8da13d0ca06f5b19589d19a2e81069b611cbece5523ef7a84eae
|
7
|
+
data.tar.gz: 125c8e40b59ccfff5e183a9dfda0f499a72157b61f42a1a840e53ddf539df79ed621a4e2f0b0716da8eca386374b996071dca3b1ca647545211f844839de2cf3
|
data/lib/qc.rb
CHANGED
@@ -7,7 +7,7 @@ require 'yaml'
|
|
7
7
|
require 'fileutils'
|
8
8
|
|
9
9
|
module QC
|
10
|
-
VERSION = '0.0.
|
10
|
+
VERSION = '0.0.3'
|
11
11
|
|
12
12
|
def QC.load_config key
|
13
13
|
f = File.expand_path('~/.qingcloud/config.yaml')
|
@@ -95,11 +95,11 @@ module QC
|
|
95
95
|
class Instance < DataType
|
96
96
|
@identifier = 'Instance'
|
97
97
|
|
98
|
-
def Instance.run p = {image_id: '
|
99
|
-
login_keypair: nil, login_passwd: nil, security_group: nil, zone: nil, instance_type: '
|
100
|
-
p[:image_id] = '
|
98
|
+
def Instance.run p = {image_id: 'trustysrvx64', instance_name: nil, count: 1, login_mode: 'keypair',
|
99
|
+
login_keypair: nil, login_passwd: nil, security_group: nil, zone: nil, instance_type: 'small_a'}
|
100
|
+
p[:image_id] = 'trustysrvx64' if p[:image_id].nil?
|
101
101
|
p[:login_mode] = 'keypair' if p[:login_mode].nil?
|
102
|
-
p[:instance_type] = '
|
102
|
+
p[:instance_type] = 'small_a' if p[:instance_type].nil?
|
103
103
|
p['vxnets.1'] = 'vxnet-0' if p['vxnets.1'].nil?
|
104
104
|
ret = API::Request.execute! 'RunInstances', p
|
105
105
|
ret['instances']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qc.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Bovensiepen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: QingCloud API Library to handle instances, networks, internetconnections,
|
14
14
|
etc. on QingCloud.com
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
version: '0'
|
44
44
|
requirements: []
|
45
45
|
rubyforge_project:
|
46
|
-
rubygems_version: 2.0.
|
46
|
+
rubygems_version: 2.0.14
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: QingCloud API Library
|