Class: Git::Whistles::App
- Inherits:
-
Object
- Object
- Git::Whistles::App
show all
- Defined in:
- lib/git-whistles/app.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
11
12
13
14
|
# File 'lib/git-whistles/app.rb', line 11
def initialize
@options = OpenStruct.new(defaults)
@log = Git::Whistles::Logger.new($stderr)
end
|
Class Method Details
.run! ⇒ Object
22
23
24
|
# File 'lib/git-whistles/app.rb', line 22
def self.run!
new.main(ARGV)
end
|
Instance Method Details
#main(args) ⇒ Object
17
18
19
|
# File 'lib/git-whistles/app.rb', line 17
def main(args)
parse_args!(args)
end
|