Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Minor formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed May 19, 2013
1 parent b09ee2d commit 86d575a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/strainer/cli.rb
Expand Up @@ -48,7 +48,7 @@ def initialize(*args)
desc 'test [COOKBOOKS]', 'Run tests against the given cookbooks'
def test(*cookbooks)
Strainer.ui.debug "Called Strainer::Cli#test with #{cookbooks.inspect}"
Strainer::Runner.new(cookbooks, options).run
Strainer::Runner.new(cookbooks, options).run!
end

# strainer info
Expand Down
4 changes: 2 additions & 2 deletions lib/strainer/runner.rb
Expand Up @@ -24,7 +24,7 @@ def initialize(cookbook_names, options = {})
end

# Runs the Strainer runner
def run
def run!
@cookbooks.each do |name, c|
cookbook = c[:cookbook]
strainerfile = c[:strainerfile]
Expand Down Expand Up @@ -59,7 +59,7 @@ def eql?(runner)
self.cookbook_names == runner.cookbook_names &&
self.options == runner.options
end
alias :== :eql?
alias_method :==, :eql?

private
def load_strainerfiles
Expand Down
3 changes: 1 addition & 2 deletions lib/strainer/strainerfile.rb
Expand Up @@ -54,8 +54,7 @@ def commands

# Reloads the Strainerfile from disk
def reload!
@all_commands = nil
@commands = nil
@all_commands, @commands = nil, nil
load!
end

Expand Down

0 comments on commit 86d575a

Please sign in to comment.