Class: Middleman::Cli::S3Metadata
- Inherits:
-
Thor
- Object
- Thor
- Middleman::Cli::S3Metadata
- Includes:
- Thor::Actions
- Defined in:
- lib/middleman/s3_metadata/commands.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
13 14 15 |
# File 'lib/middleman/s3_metadata/commands.rb', line 13 def self.exit_on_failure? true end |
Instance Method Details
#s3_metadata ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/middleman/s3_metadata/commands.rb', line 18 def shared_inst = ::Middleman::Application.server.inst if (!shared_inst.respond_to?('s3_metadata_options') || !shared_inst..aws_access_key_id) raise Thor::Error.new 'You need to activate this extension.' end ::Middleman::S3Metadata.generate end |