Skip to content

Commit

Permalink
Merge 4c27dc4 into 3e700c0
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Oct 3, 2020
2 parents 3e700c0 + 4c27dc4 commit 7f04d66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/rogue_one/cli.rb
Expand Up @@ -5,6 +5,12 @@

module RogueOne
class CLI < Thor
class << self
def exit_on_failure?
true
end
end

desc "report [DNS_SERVER]", "Show a report of a given DNS server"
method_option :default_list, type: :string, default: "alexa", desc: "A default list of top 100 domains (Alexa or Fortune)"
method_option :custom_list, type: :string, desc: "A path to a custom list of domains"
Expand Down
6 changes: 6 additions & 0 deletions spec/cli_spec.rb
Expand Up @@ -40,4 +40,10 @@ def capture(stream)
end
end
end

describe ".exit_on_failure?" do
it do
expect(described_class.exit_on_failure?).to eq(true)
end
end
end

0 comments on commit 7f04d66

Please sign in to comment.