Class: Frizz::Site

Inherits:
Object
  • Object
show all
Defined in:
lib/frizz/site.rb

Instance Method Summary collapse

Constructor Details

#initialize(host, options = {}) ⇒ Site

Returns a new instance of Site.



3
4
5
6
7
# File 'lib/frizz/site.rb', line 3

def initialize(host, options={})
  @options = { from: "build" }.merge options
  @local = Frizz::Local.new(path_to_deploy)
  @remote = Frizz::Remote.new(host)
end

Instance Method Details

#deploy!Object



9
10
11
# File 'lib/frizz/site.rb', line 9

def deploy!
  Frizz::Sync.new(local, remote).run!
end