knife-stormondemand 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ *.gem
2
+
@@ -10,6 +10,12 @@ class Chef
10
10
 
11
11
  banner "knife storm server reboot STORM_ID|STORM_FQDN (options)"
12
12
 
13
+ option :force,
14
+ :long => "--force",
15
+ :description => "Force Reboot",
16
+ :boolean => true,
17
+ :default => false
18
+
13
19
  def run
14
20
 
15
21
  validate!
@@ -30,7 +36,7 @@ class Chef
30
36
  puts "\n"
31
37
  confirm("Do you really want to reboot this server")
32
38
 
33
- server.reboot
39
+ server.reboot :force => config[:force] ? 1 : 0
34
40
  ui.warn("Rebooted server #{storm_id}")
35
41
  rescue Fog::Compute::StormOnDemand::NotFound
36
42
  ui.error("Could note locate server #{storm_id}")
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Linode
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-stormondemand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -34,6 +34,7 @@ executables: []
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
+ - .gitignore
37
38
  - README.md
38
39
  - knife-stormondemand.gemspec
39
40
  - lib/chef/knife/storm_base.rb