Class: BeamUp::Providers::Bunny
- Defined in:
- lib/beam_up/providers/bunny.rb
Defined Under Namespace
Classes: Config
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BeamUp::Providers::Base
Instance Method Details
#deploy!(path) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/beam_up/providers/bunny.rb', line 27 def deploy!(path) @path = path files_to_deploy.each do |file| upload file end Result.new( provider: "Bunny", deploy_id: Time.now.to_i.to_s, url: "https://#{@configuration.storage_zone_name}.b-cdn.net" ) rescue => error Result.new(provider: "Bunny", error: error.) end |