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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/qc.rb +5 -5
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dccf331efcb29098e651c3865f5d4d63f019586
4
- data.tar.gz: 066553273f56fcbd831063096393b7bced68ce9c
3
+ metadata.gz: ae08ba1cf263702568ebd4ff9b7f59b18cc1c1ba
4
+ data.tar.gz: ae80e5630812e582d9c33d6e1c832fcc488a6954
5
5
  SHA512:
6
- metadata.gz: 1a25f3e039f696056512a592178509232ade5119662f25eb12f1473d4a1c722d89813cbf809b8f648364ee5f467cf84d5a3c1ecd2269ed14ab443a0700b08077
7
- data.tar.gz: 4060d4ae2a012ec7ad54ba05763cd7b0a12812948b31730f929be7cbc6714ee843b607af14e8ed93c659d9751800f5e0d6d9f251088c1b5d3f8db55a25ced1fb
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.2'
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: 'precisex64a', instance_name: nil, count: 1, login_mode: 'keypair',
99
- login_keypair: nil, login_passwd: nil, security_group: nil, zone: nil, instance_type: 'small_b'}
100
- p[:image_id] = 'precisex64a' if p[:image_id].nil?
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] = 'small_b' if p[:instance_type].nil?
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.2
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-02-16 00:00:00.000000000 Z
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.3
46
+ rubygems_version: 2.0.14
47
47
  signing_key:
48
48
  specification_version: 4
49
49
  summary: QingCloud API Library