Class: Gitload::Config::DSL
- Inherits:
-
Object
- Object
- Gitload::Config::DSL
- Extended by:
- Forwardable
- Defined in:
- lib/gitload/config.rb
Instance Attribute Summary collapse
-
#repos ⇒ Object
readonly
Returns the value of attribute repos.
Instance Method Summary collapse
- #cache ⇒ Object
- #chain(repos = [], options = {}) ⇒ Object
- #clone_url_type(type, &block) ⇒ Object
-
#initialize(config) ⇒ DSL
constructor
A new instance of DSL.
- #method_missing(symbol, *args, &block) ⇒ Object
- #root(dest, &block) ⇒ Object (also: #into)
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#repos ⇒ Object (readonly)
Returns the value of attribute repos.
67 68 69 |
# File 'lib/gitload/config.rb', line 67 def repos @repos end |
Instance Method Details
#cache ⇒ Object
78 79 80 |
# File 'lib/gitload/config.rb', line 78 def cache @config.cache = true end |
#chain(repos = [], options = {}) ⇒ Object
74 75 76 |
# File 'lib/gitload/config.rb', line 74 def chain repos = [], = {} RepoChain.new @config, repos, end |
#clone_url_type(type, &block) ⇒ Object
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/gitload/config.rb', line 93 def clone_url_type type, &block previous_type = @config.clone_url_type @config.clone_url_type = type if block instance_eval &block @config.clone_url_type = previous_type end end |