morpheus-cli 3.6.36 → 3.6.37

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b3715694a20c600f63fe8557ff49e007a93ed312d0ff698aa5df90006707de9
4
- data.tar.gz: 88a39bca07e614afba64f53612752d73b0cf9dee9f2796a08a434c8a2220679d
3
+ metadata.gz: f8d732152f78b906724b55cc2f47a8751ca7c86f70a2288bc850ac1b965cbe05
4
+ data.tar.gz: b2d42e6fda75482fd755139254850747619120be4c0a475eea96e8b51aae53c8
5
5
  SHA512:
6
- metadata.gz: 7dd2d291417eaf906d1ff0f3af6212f484f59178d1e930ede3ec27903721fe89483bdb8819b124d1415660257e7768c82b24417649f04d40770b729dfbf5a618
7
- data.tar.gz: 3df6e5a8721d50dea6eea443804e43dde420bf3b0aade95544843e3b9f0cc6225a3e3405e84a8f1e37dd89e298a7b0631c0d54d128e5b755d1cc329b88e9fcbb
6
+ metadata.gz: 29710258239eb15c7873fbfa1293921addd1e39c6c51c3607fc3a7c2d40e092921b62c04eec0084a86ddc69d7eabf510c1788b6b96bb5f49dbe8758914160d72
7
+ data.tar.gz: 52e5bd429e76ae800484b1e16d2442051c8b82dbf35acd2121f8ce3c33d7313566dac05c044151edc7f50fb2f1d0e51266a33897b53c921c1e5248cc43ae2097
@@ -1931,14 +1931,22 @@ class Morpheus::Cli::Instances
1931
1931
  end
1932
1932
  end
1933
1933
 
1934
+ # suspend should be server: false by default I guess..
1934
1935
  def suspend(args)
1935
- params = {'server' => true, 'muteMonitoring' => false}
1936
+ params = {}
1936
1937
  options = {}
1937
1938
  optparse = Morpheus::Cli::OptionParser.new do |opts|
1938
1939
  opts.banner = subcommand_usage("[instance]")
1939
- opts.on('--muteMonitoring [on|off]', String, "Mute monitoring. Default is off.") do |val|
1940
+ opts.on('--mute-monitoring [on|off]', String, "Mute monitoring. Default is on.") do |val|
1940
1941
  params['muteMonitoring'] = val.nil? || val.to_s == 'on' || val.to_s == 'true'
1941
1942
  end
1943
+ opts.on('--muteMonitoring [on|off]', String, "Mute monitoring. Default is on.") do |val|
1944
+ params['muteMonitoring'] = val.nil? || val.to_s == 'on' || val.to_s == 'true'
1945
+ end
1946
+ opts.add_hidden_option('muteMonitoring')
1947
+ opts.on('--server [on|off]', String, "Suspend instance server. Default is off.") do |val|
1948
+ params['server'] = val.nil? || val.to_s == 'on' || val.to_s == 'true'
1949
+ end
1942
1950
  build_common_options(opts, options, [:auto_confirm, :quiet, :json, :dry_run, :remote])
1943
1951
  opts.footer = "Suspend an instance.\n" +
1944
1952
  "[instance] is required. This is the name or id of an instance. Supports 1-N [instance] arguments."
@@ -2169,7 +2177,7 @@ class Morpheus::Cli::Instances
2169
2177
  opts.on('--muteMonitoring [on|off]', String, "Mute monitoring. Default is on.") do |val|
2170
2178
  params['muteMonitoring'] = val.nil? || val.to_s == 'on' || val.to_s == 'true'
2171
2179
  end
2172
- opts.add_hidden_option('muteMonitoring') if opts.is_a?(Morpheus::Cli::OptionParser)
2180
+ opts.add_hidden_option('muteMonitoring')
2173
2181
  build_common_options(opts, options, [:auto_confirm, :quiet, :json, :dry_run, :remote])
2174
2182
  opts.footer = "Restart service on an instance.\n" +
2175
2183
  "[instance] is required. This is the name or id of an instance. Supports 1-N [instance] arguments."
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.6.36"
4
+ VERSION = "3.6.37"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.36
4
+ version: 3.6.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-07-12 00:00:00.000000000 Z
14
+ date: 2019-07-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler