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 15 16 17 |
# File 'lib/frizz/site.rb', line 3 def initialize(host, ={}) = { from: "build" }.merge @ignorance = Ignorance.new([:ignore]) if [:distribution] @distribution = Distribution.new([:distribution]) end = .select { |k, v| k == :redirect_rules } @local = Local.new(path_to_deploy, ignorance, ) = .select { |k, v| k == :region } @remote = Remote.new(host, ignorance, ) end |
Instance Method Details
#deploy! ⇒ Object
19 20 21 22 |
# File 'lib/frizz/site.rb', line 19 def deploy! changes = Sync.new(local, remote).run! distribution.invalidate!(changes) if distribution end |