Skip to content

Commit

Permalink
Fix unexpected Thor exit status
Browse files Browse the repository at this point in the history
Related to rails/thor#244
  • Loading branch information
laurilehmijoki committed Jun 27, 2014
1 parent a706f62 commit 60b3cf8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/s3_website
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ require 'colored'
require 'digest/md5'

class Cfg < Thor
def self.exit_on_failure?
true
end

desc 'create', 'Create a config file with placeholder values'
def create
config_file_src = File.dirname(__FILE__) + '/../resources/configuration_file_template.yml'
Expand Down Expand Up @@ -42,6 +46,10 @@ class Cfg < Thor
end

class Cli < Thor
def self.exit_on_failure?
true
end

option(
:site,
:type => :string,
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This project uses [Semantic Versioning](http://semver.org).

## 2.1.12

* Exit with status 1 when encountering an unrecognised CLI option

Fixes https://github.com/laurilehmijoki/s3_website/issues/103

## 2.1.11

* Fix documentation for the `--config-dir` option
Expand Down
2 changes: 1 addition & 1 deletion lib/s3_website/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module S3Website
VERSION = '2.1.11'
VERSION = '2.1.12'
end

0 comments on commit 60b3cf8

Please sign in to comment.