cloudstack_client 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cda2eb85c8feabc7e2e5037a386ecaa8b8149e0a
4
- data.tar.gz: f100b711a43130e0043cfecb489101d95bd50c22
3
+ metadata.gz: 4cb1427e6c34dbd08a11efe73596d391afbb4507
4
+ data.tar.gz: 73d14950cf035e0078290e6f1014d9bb2cf9b88c
5
5
  SHA512:
6
- metadata.gz: 18c2c59bfff7e5894bbce4740f2425846c6fdc552812171af9c2aeeaad82e7e28a2ac593ae11c80de8e731350d87f6c00f0b0e323b24785ceb7bbc132c32a510
7
- data.tar.gz: 6b3d672b9d4c7216b31f6de2eeac358157d28f509c27106ad708c962c0d42d3c2c400a45d42ee26e4a67c7e638aa58cea687846fabc3c48ccc4983ca93397c92
6
+ metadata.gz: 76d331fd4846aad6a1bf686161ce1256291d3aa16939b97ec9ad1d8a2eb0629989a70b328823f3b68f6ece7e0043ae91e5b1b127fbbd177cc766f520243792cb
7
+ data.tar.gz: eb7a29f513f49c26db71b8dc07277944ed3c146d32fd6753651a2813ef08aa164f2e25d59fcb7bb98db866c5a0a55dea804bad2711f0f096494acbaf50eef9dc
@@ -68,12 +68,14 @@ module CloudstackClient
68
68
 
69
69
  def list_networks(args = {})
70
70
  params = {
71
- 'command' => 'listNetworks',
72
- 'listall' => true,
71
+ 'command' => 'listNetworks'
73
72
  }
73
+
74
+ params['listall'] = true unless args[:isdefault]
75
+ params['isDefault'] = true if args[:isdefault]
76
+
74
77
  params['projectid'] = args[:project_id] if args[:project_id]
75
78
  params['zoneid'] = args[:zone_id] if args[:zone_id]
76
- params['isDefault'] = true if args[:isdefault]
77
79
  if args[:account]
78
80
  domain = list_accounts(name: args[:account])
79
81
  if domain.size > 0
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-17 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 10.0.4
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 10.0.4
41
41
  description: A ruby CloudStack API client
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
@@ -83,23 +83,23 @@ licenses:
83
83
  metadata: {}
84
84
  post_install_message:
85
85
  rdoc_options:
86
- - --line-numbers
87
- - --inline-source
86
+ - "--line-numbers"
87
+ - "--inline-source"
88
88
  require_paths:
89
89
  - lib
90
90
  required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: 1.9.3
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - '>='
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.0.3
102
+ rubygems_version: 2.2.0
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: A ruby CloudStack API client