bin/s3_website in s3_website-1.6.4 vs bin/s3_website in s3_website-1.6.5
- old
+ new
@@ -6,10 +6,11 @@
desc 'create', 'Create a config file with placeholder values'
def create
S3Website::Tasks.config_create Dir.pwd
rescue Exception => e
puts S3Website.error_report e
+ exit 1
end
desc 'apply', 'Apply the configuration on the AWS services'
long_desc <<-LONGDESC
`s3_website cfg apply` will apply the configuration the S3 bucket.
@@ -26,10 +27,11 @@
ConfigureS3Website::Runner.run({
:config_source => config_source
})
rescue Exception => e
puts S3Website.error_report e
+ exit 1
end
end
class Cli < Thor
option(
@@ -58,9 +60,10 @@
def push
site_path = S3Website::Paths.infer_site_path options[:site]
S3Website::Tasks.push(options[:config_dir], site_path, options[:headless])
rescue Exception => e
puts S3Website.error_report e
+ exit 1
end
desc 'cfg SUBCOMMAND ...ARGS', 'Operate on the config file'
subcommand 'cfg', Cfg
end