simple_stack 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/lib/simple_stack/guest.rb +2 -2
- data/lib/simple_stack/version.rb +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -4,7 +4,7 @@ A simple gem to deal with Simple Stack project.
|
|
4
4
|
|
5
5
|
Get a simplestack class:
|
6
6
|
|
7
|
-
stack = SimpleStack.new :url => url, :username => username, :password => password
|
7
|
+
stack = SimpleStack::Connection.new :url => url, :username => username, :password => password
|
8
8
|
|
9
9
|
Connecting to hypervisor:
|
10
10
|
|
data/lib/simple_stack/guest.rb
CHANGED
@@ -4,8 +4,8 @@ module SimpleStack
|
|
4
4
|
SimpleStack::Collection.new hypervisor, "#{url}/snapshots", SimpleStack::Snapshot
|
5
5
|
end
|
6
6
|
|
7
|
-
def reboot
|
8
|
-
hypervisor.put "#{url}/reboot"
|
7
|
+
def reboot(force = false)
|
8
|
+
hypervisor.put "#{url}/reboot", :force => force
|
9
9
|
end
|
10
10
|
|
11
11
|
def power_state=(state)
|
data/lib/simple_stack/version.rb
CHANGED