arcus 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -43,6 +43,16 @@ vms = VirtualMachine.new.list({id: 1}).fetch(:json)
43
43
 
44
44
  will produce the http call -> /client/api?id=1&response=xml&command=listVirtualMachines
45
45
 
46
+ To configure arcus, you will need to create a file in ~/.arcusrc in YAML format, for example:
47
+
48
+ #api_uri: https://cloud.datapipe.com/api/compute/v1
49
+ api_uri: http://icloud-staging.logicworks.net/client/api
50
+ default_response: yaml
51
+ api_key: cWzUTyxmfUXPluN4iyoGygeGhHeVaeBbSqcHseO5czHh3WRp7WdgHfkA4bhROgo6s-Tmw-_jOspnoA7lBx3xWw
52
+ api_secret: hunbxq-IFS2C5_i-3KYMgk-VF9YeuySI8qiTXzKtxE96WzGN8SDEQlbgACw6_Sd0KW6xT33HRm3AmlUbAzZWlg
53
+ #api_secret: T1jekzGJ_-aq9LucFfuQif2oNVIIA6w-Rnx-bwOHQ-_JPcCswIKblBgXrKzC0pVoI3VX0RK9xFpZIsdVPgQ5Kw
54
+ #api_key: mZ5tQeLN64XYwKqRczh0q-rlarill8NIanA6roWelvDCNi8A36BUwXF_GfNi0biOwuK_LosNNSO12Q88Gm_APQ
55
+
46
56
 
47
57
  ## Contributing
48
58
 
@@ -115,7 +115,10 @@ module Arcus
115
115
  end
116
116
  puts AsyncJobResult.new.query({:jobid => job_id}).fetch(response_type.to_sym)
117
117
  else
118
- puts a.new.prepare(required_params.merge(optional_params)).fetch(response_type.to_sym)
118
+ time = Benchmark.realtime do
119
+ puts a.new.prepare(required_params.merge(optional_params)).fetch(response_type.to_sym)
120
+ end
121
+ puts time
119
122
  end
120
123
  rescue Timeout::Error => e
121
124
  puts "Timeout connecting to #{e.api_uri}"
@@ -133,4 +136,4 @@ module Arcus
133
136
  cmd.parse
134
137
  end
135
138
  end
136
- end
139
+ end
@@ -23034,6 +23034,16 @@
23034
23034
  <description>the ending IP address in the network IP range. If not specified, will be defaulted to startIP</description>
23035
23035
  <required>false</required>
23036
23036
  </arg>
23037
+ <arg>
23038
+ <name>isdefault</name>
23039
+ <description>true if network is default, false otherwise</description>
23040
+ <required>false</required>
23041
+ </arg>
23042
+ <arg>
23043
+ <name>isshared</name>
23044
+ <description>true is network is shared across accounts in the Zone</description>
23045
+ <required>false</required>
23046
+ </arg>
23037
23047
  <arg>
23038
23048
  <name>gateway</name>
23039
23049
  <description>the gateway of the network</description>
@@ -28809,4 +28819,4 @@
28809
28819
  </arg>
28810
28820
  </response>
28811
28821
  </command>
28812
- </commands>
28822
+ </commands>
@@ -1,3 +1,3 @@
1
1
  module Arcus
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-01 00:00:00.000000000 Z
12
+ date: 2012-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 1.8.23
156
+ rubygems_version: 1.8.24
157
157
  signing_key:
158
158
  specification_version: 3
159
159
  summary: API and client CLI tool for cloudstack