Class: BigShift::Cli
- Inherits:
-
Object
- Object
- BigShift::Cli
- Defined in:
- lib/bigshift/cli.rb
Instance Method Summary collapse
-
#initialize(argv, options = {}) ⇒ Cli
constructor
A new instance of Cli.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/bigshift/cli.rb', line 27 def run begin setup unload transfer load cleanup nil rescue Aws::Errors::MissingRegionError, Aws::Sigv4::Errors::MissingCredentialsError => e raise CliError.new('AWS configuration missing or malformed: ' + e., e.backtrace, @usage) rescue Signet::AuthorizationError => e raise CliError.new('GCP configuration missing or malformed: ' + e., e.backtrace, @usage) end end |