Class: PullBundle::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/pull-bundle/repository.rb

Defined Under Namespace

Classes: CommandException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Repository

Returns a new instance of Repository.



9
10
11
# File 'lib/pull-bundle/repository.rb', line 9

def initialize(options = {})
  @path = options[:path]
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



7
8
9
# File 'lib/pull-bundle/repository.rb', line 7

def path
  @path
end

Instance Method Details

#runObject



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