Class: GitStyleBinary::AutoRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/git-style-binary/autorunner.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.run(argv = ARGV) ⇒ Object



6
7
8
9
# File 'lib/git-style-binary/autorunner.rb', line 6

def self.run(argv=ARGV)
  r = new
  r.run
end

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
# File 'lib/git-style-binary/autorunner.rb', line 11

def run
  unless GitStyleBinary.run?
    if !GitStyleBinary.current_command 
      GitStyleBinary.load_primary
    end
    GitStyleBinary.current_command.run
  end
end