lib/chef/knife/winrm_shared_options.rb in knife-windows-3.0.6 vs lib/chef/knife/winrm_shared_options.rb in knife-windows-3.0.10

- old
+ new

@@ -14,39 +14,39 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # -require 'chef/knife' -require 'chef/encrypted_data_bag_item' -require 'kconv' +require "chef/knife" +require "chef/encrypted_data_bag_item" +require "kconv" class Chef class Knife module WinrmSharedOptions # Shared command line options for knife winrm and knife wsman test def self.included(includer) includer.class_eval do option :manual, - :short => "-m", - :long => "--manual-list", - :boolean => true, - :description => "QUERY is a space separated list of servers", - :default => false + short: "-m", + long: "--manual-list", + boolean: true, + description: "QUERY is a space separated list of servers", + default: false option :attribute, - :short => "-a ATTR", - :long => "--attribute ATTR", - :description => "The attribute to use for opening the connection - default is fqdn", - :default => "fqdn" + short: "-a ATTR", + long: "--attribute ATTR", + description: "The attribute to use for opening the connection - default is fqdn", + default: "fqdn" option :concurrency, - :short => "-C NUM", - :long => "--concurrency NUM", - :description => "The number of allowed concurrent connections", - :default => 1, - :proc => lambda { |o| o.to_i } + short: "-C NUM", + long: "--concurrency NUM", + description: "The number of allowed concurrent connections", + default: 1, + proc: lambda { |o| o.to_i } end end end end