WPSTools updated to respect ruby standards according to rubocop

This commit is contained in:
erwanlr
2013-01-24 17:04:45 +01:00
parent ce9f073f26
commit b0dd9ba989
18 changed files with 261 additions and 231 deletions

View File

@@ -19,15 +19,15 @@
#++
$: << '.'
require File.dirname(__FILE__) + "/lib/wpstools/wpstools_helper"
require File.dirname(__FILE__) + '/lib/wpstools/wpstools_helper'
begin
banner()
option_parser = CustomOptionParser.new("Usage: ./wpstools.rb [options]", 60)
option_parser.separator ""
option_parser.add(["-v", "--verbose", "Verbose output"])
option_parser = CustomOptionParser.new('Usage: ./wpstools.rb [options]', 60)
option_parser.separator ''
option_parser.add(['-v', '--verbose', 'Verbose output'])
plugins = Plugins.new(option_parser)
plugins.register(
@@ -47,6 +47,6 @@ begin
rescue => e
puts "[ERROR] #{e.message}"
puts "Trace :"
puts 'Trace :'
puts e.backtrace.join("\n")
end