Class: Frizz::Site
- Inherits:
-
Object
- Object
- Frizz::Site
- Defined in:
- lib/frizz/site.rb
Instance Method Summary collapse
- #deploy! ⇒ Object
-
#initialize(host, options = {}) ⇒ Site
constructor
A new instance of Site.
Constructor Details
#initialize(host, options = {}) ⇒ Site
Returns a new instance of Site.
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/frizz/site.rb', line 3 def initialize(host, ={}) = { from: "build" }.merge @ignorance = Ignorance.new([:ignore]) if [:distribution] @distribution = Distribution.new([:distribution]) end @local = Local.new(path_to_deploy, ignorance) @remote = Remote.new(host, ignorance) end |
Instance Method Details
#deploy! ⇒ Object
16 17 18 19 |
# File 'lib/frizz/site.rb', line 16 def deploy! changes = Sync.new(local, remote).run! distribution.invalidate!(changes) if distribution end |