Class: PullBundle::Repository
- Inherits:
-
Object
- Object
- PullBundle::Repository
- Defined in:
- lib/pull-bundle/repository.rb
Defined Under Namespace
Classes: CommandException
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Repository
constructor
A new instance of Repository.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Repository
Returns a new instance of Repository.
9 10 11 |
# File 'lib/pull-bundle/repository.rb', line 9 def initialize( = {}) @path = [:path] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
7 8 9 |
# File 'lib/pull-bundle/repository.rb', line 7 def path @path end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/pull-bundle/repository.rb', line 13 def run begin do_run { path: path, result: 'Success' } rescue CommandException => e { path: path, result: e } end end |