Class: Abak::Flow::Repository
- Inherits:
-
Object
- Object
- Abak::Flow::Repository
- Extended by:
- Forwardable
- Defined in:
- lib/abak-flow/repository.rb
Defined Under Namespace
Classes: Remote
Constant Summary collapse
- REMOTES =
%w{origin upstream}.map(&:freeze)
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize ⇒ Repository
constructor
A new instance of Repository.
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ Repository
Returns a new instance of Repository.
9 10 11 12 13 |
# File 'lib/abak-flow/repository.rb', line 9 def initialize @_errors = Hash.new create_public_instance_methods end |
Instance Method Details
#errors ⇒ Object
23 24 25 |
# File 'lib/abak-flow/repository.rb', line 23 def errors ErrorsPresenter.new(self, @_errors) end |
#valid? ⇒ Boolean
15 16 17 18 19 20 21 |
# File 'lib/abak-flow/repository.rb', line 15 def valid? @_errors = Hash.new @_errors["origin"] = ['not_set'] if origin.nil? @_errors["upstream"] = ['not_set'] if upstream.nil? @_errors.empty? end |