bin/configure-s3-website in configure-s3-website-1.2.0 vs bin/configure-s3-website in configure-s3-website-1.3.0

- old
+ new

@@ -3,32 +3,10 @@ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'optparse' require 'configure-s3-website' -options = {} +options, optparse = ConfigureS3Website::CLI.optparse_and_options -banner = <<END -Usage: #{File.basename(__FILE__)} arguments - -Configure your S3 bucket to function as a web site - -Arguments: -END - -optparse = OptionParser.new do |opts| - opts.banner = banner - opts.on('-f', '--config-file FILE', - 'Pick credentials and the S3 bucket name from a config file') do - |yaml_file_path| - options[:config_source] = - ConfigureS3Website::FileConfigSource.new yaml_file_path - end - opts.on('--help', 'Display this screen') do - puts opts - exit - end -end - optparse.parse! -ConfigureS3Website::S3Client.configure_website(options[:config_source]) +ConfigureS3Website::Runner.run(options)