Class: LocalDeployer
- Inherits:
-
Spar::Deployer
- Object
- Spar::Deployer
- LocalDeployer
- Defined in:
- lib/spar/deployers/local_deployer.rb
Instance Method Summary collapse
Methods inherited from Spar::Deployer
Instance Method Details
#deploy(asset) ⇒ Object
10 11 12 13 |
# File 'lib/spar/deployers/local_deployer.rb', line 10 def deploy(asset) asset.write_to(@deploy_path) super end |
#prepare(assets) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/spar/deployers/local_deployer.rb', line 3 def prepare(assets) super @deploy_path = Spar.settings['deploy_path'] raise "ERROR: You should set the :deploy_path in your config.yml to a directory you want to do the local deploy to." unless @deploy_path end |