Class: GitPivot::Runner
- Inherits:
-
Object
- Object
- GitPivot::Runner
- Defined in:
- lib/runner.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(args) ⇒ Runner
Returns a new instance of Runner.
25 26 27 28 29 30 31 32 |
# File 'lib/runner.rb', line 25 def initialize(args) @argv = args process_args # configuration stuff configuration = YAML.load_file("git_pivot.yml") @git_pivot = GitPivot.new(configuration["project_id"], configuration["token"], configuration["owner"]) end |
Instance Method Details
#run ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/runner.rb', line 34 def run if @arg1 @git_pivot.send(@command, @arg1) else @git_pivot.send(@command) end end |