cloudstack-cli 1.6.3 → 1.6.4

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
  SHA256:
3
- metadata.gz: 50c76976a8bed86103cecd8df8370c7656df70dba8da052f25c2f4c8b2cb953c
4
- data.tar.gz: 32b6c558a028bc07a8c57c9689ab851a0953838fd781e13c80d904ce4099afb2
3
+ metadata.gz: 5cea33c910e0045af71672434ed97dbb8cdf6867310c189f0235e6f9698231cd
4
+ data.tar.gz: 221e032238141838c7304811cedfd573e1dae405b07e9e64d2c0794950515c3e
5
5
  SHA512:
6
- metadata.gz: 7e5b4b981e01fa106ba2602f4bd6c7f77becd6d5847012b1374cbbe845dfeb996c4cd36d007b835c8d440982815b6eed715cf62fc2d052762d7a66bb88977c99
7
- data.tar.gz: 691b99ac299087f0d9d556d26d100eb1ea9cd26c87ebddd75ae005ca8a290c5f0c99d2101a9ba0f532bfc3192dc168be4ae45f8ef9e0523a0ef916ae32651be5
6
+ metadata.gz: 627df221d609685d0f5bee371c04f296656b76aea67cac56ae88277d5c1c061b0d7f354383f8a64386faa8eb14b9403777098a54bb1f454497d41a2c6ee3abac
7
+ data.tar.gz: 2aa7d3a92c9c84b22b325d8669df8be4348612440b777b002302904826cb294c673f8973621c2d2927b51756963335ee484c43d91e0d1ec47a7a7e2e8c960dd2
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudstack-cli (1.6.3)
5
- cloudstack_client (~> 1.5.3)
4
+ cloudstack-cli (1.6.4)
5
+ cloudstack_client (~> 1.5.4)
6
6
  thor (~> 0.20.0)
7
7
 
8
8
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  cloudstack_client (1.5.4)
12
12
  minitest (5.11.3)
13
13
  rake (12.3.1)
14
- thor (0.20.0)
14
+ thor (0.20.3)
15
15
 
16
16
  PLATFORMS
17
17
  ruby
@@ -24,6 +24,6 @@ Gem::Specification.new do |gem|
24
24
  gem.add_development_dependency('rake', '~> 12.3')
25
25
  gem.add_development_dependency('minitest', '~> 5.11')
26
26
 
27
- gem.add_dependency('cloudstack_client', '~> 1.5.3')
27
+ gem.add_dependency('cloudstack_client', '~> 1.5.4')
28
28
  gem.add_dependency('thor', '~> 0.20.0')
29
29
  end
@@ -26,7 +26,7 @@ class Template < CloudstackCli::Base
26
26
  templates.each do |template|
27
27
  table << [
28
28
  template['name'],
29
- Time.parse(template['created']).strftime("%F"),
29
+ (Time.parse(template['created']).strftime("%F") rescue "-"),
30
30
  template['zonename'],
31
31
  template['isfeatured'],
32
32
  template['ispublic'],
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "1.6.3"
2
+ VERSION = "1.6.4"
3
3
  end
@@ -16,16 +16,14 @@ describe VirtualMachine do
16
16
  "--offering=#{OFFERING_S}",
17
17
  "--networks=test-network",
18
18
  "--port-rules=:80",
19
- "--assumeyes",
20
- CONFIG,
19
+ "--assumeyes"
21
20
  ]}
22
21
  err.must_equal ""
23
22
 
24
23
  # READ - LIST
25
24
  out, err = capture_io{ CloudstackCli::Cli.start [
26
25
  "vm",
27
- "list",
28
- CONFIG
26
+ "list"
29
27
  ]}
30
28
  err.must_equal ""
31
29
  out.must_match(
@@ -36,8 +34,7 @@ describe VirtualMachine do
36
34
  out, err = capture_io{ CloudstackCli::Cli.start [
37
35
  "vm",
38
36
  "show",
39
- vmname,
40
- CONFIG
37
+ vmname
41
38
  ]}
42
39
  err.must_equal ""
43
40
  out.must_match(
@@ -49,8 +46,7 @@ describe VirtualMachine do
49
46
  "vm",
50
47
  "stop",
51
48
  vmname,
52
- "--force",
53
- CONFIG,
49
+ "--force"
54
50
  ]}
55
51
  err.must_equal ""
56
52
 
@@ -61,8 +57,7 @@ describe VirtualMachine do
61
57
  "update",
62
58
  vmname,
63
59
  "--name=#{new_vmname}",
64
- "--force",
65
- CONFIG,
60
+ "--force"
66
61
  ]}
67
62
  err.must_equal ""
68
63
 
@@ -70,8 +65,7 @@ describe VirtualMachine do
70
65
  out, err = capture_io{ CloudstackCli::Cli.start [
71
66
  "vm",
72
67
  "start",
73
- new_vmname,
74
- CONFIG,
68
+ new_vmname
75
69
  ]}
76
70
  err.must_equal ""
77
71
 
@@ -80,8 +74,7 @@ describe VirtualMachine do
80
74
  "vm",
81
75
  "reboot",
82
76
  new_vmname,
83
- "--force",
84
- CONFIG,
77
+ "--force"
85
78
  ]}
86
79
  err.must_equal ""
87
80
 
@@ -91,8 +84,7 @@ describe VirtualMachine do
91
84
  "destroy",
92
85
  new_vmname,
93
86
  "--expunge",
94
- "--force",
95
- CONFIG,
87
+ "--force"
96
88
  ]}
97
89
  err.must_equal ""
98
90
 
data/spec/spec_helper.rb CHANGED
@@ -4,9 +4,8 @@ require "minitest/spec"
4
4
  require "minitest/autorun"
5
5
  require "minitest/pride"
6
6
 
7
- # make the config file setup awailable to all specs
8
- CONFIG = "--config-file=#{File.expand_path('cloudstack.yml', File.dirname(__FILE__))}"
7
+ # make the config file setup available to all specs
9
8
  ZONE = "Sandbox-simulator"
10
- TEMPLATE = "CentOS 5.3(64-bit) no GUI (Simulator)"
9
+ TEMPLATE = "CentOS 5.6 (64-bit) no GUI (Simulator)"
11
10
  OFFERING_S = "Small Instance"
12
11
  OFFERING_M = "Medium Instance"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2018-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.5.3
47
+ version: 1.5.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.3
54
+ version: 1.5.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +129,6 @@ files:
129
129
  - lib/cloudstack-cli/thor_patch.rb
130
130
  - lib/cloudstack-cli/version.rb
131
131
  - spec/cloudstack-cli/commands/virtual_machine_spec.rb
132
- - spec/cloudstack.yml
133
132
  - spec/fixtures/stack.yml
134
133
  - spec/spec_helper.rb
135
134
  homepage: http://github.com/niwo/cloudstack-cli
@@ -160,6 +159,5 @@ specification_version: 4
160
159
  summary: cloudstack-cli CloudStack API client
161
160
  test_files:
162
161
  - spec/cloudstack-cli/commands/virtual_machine_spec.rb
163
- - spec/cloudstack.yml
164
162
  - spec/fixtures/stack.yml
165
163
  - spec/spec_helper.rb
data/spec/cloudstack.yml DELETED
@@ -1,5 +0,0 @@
1
- :default: development
2
- development:
3
- :url: http://127.0.0.1:8080/client/api
4
- :api_key: 3B1lE0C33ceSOUg0jaIo8STNZ55I-mdvza0LXpZA8mrvtpBpgzJgE9YSsURBcQ6qKX090w5vv_AgGRZeYS9AiQ
5
- :secret_key: mneyw6fg__Gt-ENg0E_9BfxcuiMJPSThe701Kuz7f5_EsJ0POoN4z9eoslECP5V9oDzB6XOlsCw1FuBqPjMmLg