Class: OpenPull::Runner
- Inherits:
-
Object
- Object
- OpenPull::Runner
- Defined in:
- lib/openpull/runner.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv = []) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(argv = []) ⇒ Runner
Returns a new instance of Runner.
16 17 18 19 |
# File 'lib/openpull/runner.rb', line 16 def initialize(argv = []) @argv = argv = {} end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
13 14 15 |
# File 'lib/openpull/runner.rb', line 13 def argv @argv end |
#options ⇒ Object
Returns the value of attribute options.
14 15 16 |
# File 'lib/openpull/runner.rb', line 14 def end |
Class Method Details
.run(argv = []) ⇒ Object
8 9 10 |
# File 'lib/openpull/runner.rb', line 8 def run(argv = []) new(argv).run end |
Instance Method Details
#run ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/openpull/runner.rb', line 21 def run op = option_parser op.parse! (op) puts OpenPull::Client.new([:access_token], [:organisation], [:username]).show_table end |