Sha256: 0671e9d749b6fa8f5e3a6e2a43442a64a4dfd5a4d9564cca5872b8967cf909c9
Contents?: true
Size: 862 Bytes
Versions: 8
Compression:
Stored size: 862 Bytes
Contents
module ConfigureS3Website class CLI def self.optparse_and_options options = {} 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('-v', '--verbose', 'Print more stuff') do options[:verbose] = true end opts.on('--help', 'Display this screen') do puts opts exit end end [options, optparse] end private def self.banner %|Usage: #{File.basename(__FILE__)} arguments Configure your S3 bucket to function as a web site Arguments: | end end end
Version data entries
8 entries across 8 versions & 1 rubygems