danarchy_sys 0.5.5 → 0.6.0

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: c6ae658bd010bf47a8943c0c0a2990a5e066373f97995b9d2db776595aac9fda
4
- data.tar.gz: 4dfddb1cfdafbf98aa22624f410001e01c86add6488f734f6a296eaefa6cfeff
3
+ metadata.gz: ae1b8eab99bb157d001589fa28a41737d38cc60fb5498b420f9582d2786581ab
4
+ data.tar.gz: bd8dd9fb8b553c463f485e8558c64f8436dd949371f8d4cd8de8d348ddf6c2a3
5
5
  SHA512:
6
- metadata.gz: 2b6fec76e79ba94b31b3f1a16304b0897e525e58dbbe8f3fcb48edd98a78d45c76cdda69ae8e4f1781b4c090c0ee90b25bf41879921e34911a50951516b41f25
7
- data.tar.gz: 3294ea1ef14b9d724a341a81a5096405eade825e040931f74e8dd3b0867929d587614c953c6bcdb5ea754ab13ed9e74111da462ad74c2af41679c04b3532831d
6
+ metadata.gz: 4f2b6dd1475b4104b70b484ea387ebb413c8284ea950a56698a8130754708330cd954a9abaa0945dbec568a8832b8269d86a93a2ecffb5632ae7729a21da6c04
7
+ data.tar.gz: 272712c6dba0a4dee48dd13d851b5507c88599e051fa0803e6d1c651a6b82b89a599c8e8027211bae8908f10018f541d49925ea856b32fdd62a09057ce9c3a19
data/danarchy_sys.gemspec CHANGED
@@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.add_dependency "fog-openstack", "~> 0.1.20"
31
+ spec.add_dependency "fog-openstack", "~> 1.0.0"
32
32
 
33
- spec.add_development_dependency "bundler", "~> 1.13"
34
- spec.add_development_dependency "rake", "~> 10.0"
35
- spec.add_development_dependency "rspec", "~> 3.0"
33
+ spec.add_development_dependency "bundler", "~> 1.16.0"
34
+ spec.add_development_dependency "rake", "~> 12.3.0"
35
+ # spec.add_development_dependency "rspec", "~> 3.0"
36
36
  end
@@ -45,11 +45,14 @@ class InstanceManager
45
45
  end
46
46
  elsif cmd == 'status'
47
47
  instance = @os_compute.instances.get_instance(instance.name)
48
- uptime_result = @os_compute.ssh(instance, 'uptime')
49
- if instance.state == 'ACTIVE' && uptime_result[:stderr]
50
- printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', 'WAITING')
51
- else
52
- printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', instance.state)
48
+ if instance.state == 'ACTIVE'
49
+ uptime_result = @os_compute.ssh(instance, 'uptime')
50
+
51
+ if uptime_result[:stderr]
52
+ printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', 'WAITING')
53
+ else
54
+ printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', instance.state)
55
+ end
53
56
  end
54
57
  elsif %w(pause unpause suspend resume start stop).include?(cmd.to_s)
55
58
  status = instance.state
@@ -36,7 +36,7 @@ module DanarchySys::ConfigManager
36
36
  end
37
37
 
38
38
  def new_account_prompt
39
- print "OpenStack Auth URL\t(Example: http://openstack-host.com:5000/v2.0/tokens)\nEnter URL: "
39
+ print "OpenStack Auth URL\t(Example: http://openstack-host.com:5000/v2.0)\nEnter URL: "
40
40
  openstack_auth_url = gets.chomp
41
41
  print 'OpenStack Username: '
42
42
  openstack_username = gets.chomp
@@ -9,7 +9,7 @@ module DanarchySys
9
9
  class Compute
10
10
  def initialize(connection, settings)
11
11
  @settings = settings
12
- @compute = Fog::Compute::OpenStack.new(connection)
12
+ @compute = Fog::OpenStack::Compute.new(connection)
13
13
  @instances = @compute.servers
14
14
  @images = @compute.images(filters: {'status' => ['ACTIVE']})
15
15
  @flavors = @compute.flavors
@@ -1,3 +1,3 @@
1
1
  module DanarchySys
2
- VERSION = '0.5.5'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danarchy_sys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan James
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-30 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-openstack
@@ -16,56 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.20
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.20
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.13'
33
+ version: 1.16.0
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
- version: '1.13'
40
+ version: 1.16.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: 12.3.0
48
48
  type: :development
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: '10.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3.0'
54
+ version: 12.3.0
69
55
  description: dAnarchy Sys is intended to be a platform for the management of cloud
70
56
  compute instances from initial setup through to the deployment of end-user software.
71
57
  email: