Skip to content

Commit

Permalink
Classes are silly, sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbxbx committed Apr 11, 2011
1 parent 745f2c3 commit b46afbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/dirty
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

require 'dirty'

Dirty.run
Dirty.perform
8 changes: 3 additions & 5 deletions lib/dirty.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Dirty
module Dirty
extend self

def status
`git status --porcelain`.split("\n")
end
Expand All @@ -11,10 +13,6 @@ def dirty_features
dirty_files.map { |s| s[/(features.*\.feature)/] }
end

def self.run
new.perform
end

def perform
system("cucumber #{dirty_features.join(' ')}") if dirty_features.any?
end
Expand Down

0 comments on commit b46afbc

Please sign in to comment.