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, ={}) @options = { from: "build" }.merge @ignorance = Ignorance.new(@options[:ignore]) if @options[:distribution] @distribution = Distribution.new(@options[: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 |