lib/stove/cli.rb in stove-3.2.7 vs lib/stove/cli.rb in stove-3.2.8

- old
+ new

@@ -25,21 +25,23 @@ raise "Missing argument `--key'!" end Config.username = options[:username] Config.key = options[:key] + Config.endpoint = options[:endpoint] unless options[:endpoint].nil? Config.save @stdout.puts "Successfully saved config to `#{Config.__path__}'!" @kernel.exit(0) return end # Override configs - Config.endpoint = options[:endpoint] if options[:endpoint] - Config.username = options[:username] if options[:username] - Config.key = options[:key] if options[:key] + Config.endpoint = options[:endpoint] if options[:endpoint] + Config.username = options[:username] if options[:username] + Config.key = options[:key] if options[:key] + Config.ssl_verify = options[:ssl_verify] # Set the log level Stove.log_level = options[:log_level] # Useful debugging output for when people type the wrong fucking command @@ -118,10 +120,14 @@ opts.on('--extended-metadata', 'Include non-backwards compatible metadata keys such as `issues_url`') do options[:extended_metadata] = true end + opts.on('--no-ssl-verify', 'Turn off ssl verify') do + options[:ssl_verify] = false + end + opts.separator '' opts.separator 'Git Options:' opts.on('--remote [REMOTE]', 'Name of the git remote') do |v| options[:remote] = v @@ -167,9 +173,10 @@ # Upload options :endpoint => nil, :username => Config.username, :key => Config.key, :extended_metadata => false, + :ssl_verify => true, # Git options :remote => 'origin', :branch => 'master', :sign => false,