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.
14 15 16 17 |
# File 'lib/openpull/runner.rb', line 14 def initialize(argv = []) @argv = argv = {} end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
11 12 13 |
# File 'lib/openpull/runner.rb', line 11 def argv @argv end |
#options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/openpull/runner.rb', line 12 def end |
Class Method Details
.run(argv = []) ⇒ Object
6 7 8 |
# File 'lib/openpull/runner.rb', line 6 def run(argv = []) new(argv).run end |
Instance Method Details
#run ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/openpull/runner.rb', line 19 def run op = option_parser op.parse! (op) puts OpenPull::Client.new([:access_token], [:organisation], [:username]).show_table end |