nephele 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/neph +10 -2
- data/bin/nephele +10 -2
- data/nephele.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.13
|
data/bin/neph
CHANGED
@@ -37,8 +37,8 @@ class Nephele::Runner < Optitron::CLI
|
|
37
37
|
end
|
38
38
|
|
39
39
|
desc 'Display server status'
|
40
|
-
def status
|
41
|
-
puts service.status
|
40
|
+
def status(search_string = nil)
|
41
|
+
puts (search_string ? service.status.grep(/#{search_string}/) : service.status)
|
42
42
|
end
|
43
43
|
|
44
44
|
desc "Creates a node with name, image name, flavor"
|
@@ -71,6 +71,14 @@ class Nephele::Runner < Optitron::CLI
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
+
desc 'Restart a node'
|
75
|
+
def reboot(name_string)
|
76
|
+
if node = service.server_objs.find { |s| s.name == name_string }
|
77
|
+
puts "Rebooting: #{name_string}"
|
78
|
+
node.reboot
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
74
82
|
desc 'Change a password on given node'
|
75
83
|
def password(node_string, password_string)
|
76
84
|
service.server_objs.find { |s| s.name == node_string }.update(:adminPass => password_string)
|
data/bin/nephele
CHANGED
@@ -37,8 +37,8 @@ class Nephele::Runner < Optitron::CLI
|
|
37
37
|
end
|
38
38
|
|
39
39
|
desc 'Display server status'
|
40
|
-
def status
|
41
|
-
puts service.status
|
40
|
+
def status(search_string = nil)
|
41
|
+
puts (search_string ? service.status.grep(/#{search_string}/) : service.status)
|
42
42
|
end
|
43
43
|
|
44
44
|
desc "Creates a node with name, image name, flavor"
|
@@ -71,6 +71,14 @@ class Nephele::Runner < Optitron::CLI
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
+
desc 'Restart a node'
|
75
|
+
def reboot(name_string)
|
76
|
+
if node = service.server_objs.find { |s| s.name == name_string }
|
77
|
+
puts "Rebooting: #{name_string}"
|
78
|
+
node.reboot
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
74
82
|
desc 'Change a password on given node'
|
75
83
|
def password(node_string, password_string)
|
76
84
|
service.server_objs.find { |s| s.name == node_string }.update(:adminPass => password_string)
|
data/nephele.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nephele
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 13
|
10
|
+
version: 0.1.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeffrey O'Dell
|