Class: RedmineWithGit::Dump::Base
- Inherits:
-
RedmineWithGit::DumpLoad::Base
- Object
- RedmineWithGit::DumpLoad::Base
- RedmineWithGit::Dump::Base
- Includes:
- EacRubyUtils::Listable
- Defined in:
- lib/redmine_with_git/dump/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(path, options = {}) ⇒ Base
constructor
A new instance of Base.
- #overwrite ⇒ Object
- #space_limit ⇒ Object
Constructor Details
#initialize(path, options = {}) ⇒ Base
Returns a new instance of Base.
16 17 18 19 20 21 |
# File 'lib/redmine_with_git/dump/base.rb', line 16 def initialize(path, = {}) .assert_argument ::Hash, 'options' @options = validate_overwrite super(path) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/redmine_with_git/dump/base.rb', line 14 def @options end |
Instance Method Details
#overwrite ⇒ Object
23 24 25 26 |
# File 'lib/redmine_with_git/dump/base.rb', line 23 def overwrite v = @options[:overwrite] v.present? ? v.to_i : OVERWRITE_DENIED end |
#space_limit ⇒ Object
28 29 30 |
# File 'lib/redmine_with_git/dump/base.rb', line 28 def space_limit @options[:space_limit] end |