Class: Vx::Builder::Script::WebdavCache
- Inherits:
-
Struct
- Object
- Struct
- Vx::Builder::Script::WebdavCache
- Includes:
- Helper::Config, Helper::Logger
- Defined in:
- lib/vx/builder/script/webdav_cache.rb
Constant Summary collapse
- CASHER_URL =
"https://raw.github.com/travis-ci/casher/production/bin/casher"- CASHER_BIN =
"$HOME/.casher/bin/casher"
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
Methods included from Helper::Logger
Methods included from Helper::Config
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
5 6 7 |
# File 'lib/vx/builder/script/webdav_cache.rb', line 5 def app @app end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vx/builder/script/webdav_cache.rb', line 13 def call(env) rs = app.call env if config.webdav_cache_url assign_url_to_env(env) prepare(env) fetch(env) add(env) push(env) end rs end |