frizz 0.0.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +8 -8
- data/lib/frizz/middleman/tasks.rb +1 -1
- data/lib/frizz/site.rb +2 -2
- data/lib/frizz/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -52,18 +52,18 @@ end
|
|
|
52
52
|
|
|
53
53
|
### Basic deploys
|
|
54
54
|
|
|
55
|
-
Deploy the contents of `build/` to your static website
|
|
56
|
-
|
|
55
|
+
Deploy the contents of `build/` to your static website at "my-static-site.com",
|
|
56
|
+
assuming your S3 bucket is named after your host as S3 static hosting requires:
|
|
57
57
|
|
|
58
58
|
```ruby
|
|
59
|
-
site = Frizz::Site.new("my-
|
|
59
|
+
site = Frizz::Site.new("my-static-site.com")
|
|
60
60
|
site.deploy!
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
Specify a different local build dir:
|
|
64
64
|
|
|
65
65
|
```ruby
|
|
66
|
-
site = Frizz::Site.new("my-
|
|
66
|
+
site = Frizz::Site.new("my-static-site.com", from: "build/public")
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
## Usage With Middleman
|
|
@@ -97,9 +97,9 @@ With the following `frizz.yml`:
|
|
|
97
97
|
```yaml
|
|
98
98
|
environments:
|
|
99
99
|
staging:
|
|
100
|
-
|
|
100
|
+
host: "staging.example.com"
|
|
101
101
|
production:
|
|
102
|
-
|
|
102
|
+
host: "example.com"
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
Frizz would give us the following Rake tasks:
|
|
@@ -134,11 +134,11 @@ With the following `frizz.yml`:
|
|
|
134
134
|
```yaml
|
|
135
135
|
environments:
|
|
136
136
|
staging:
|
|
137
|
-
|
|
137
|
+
host: "staging.example.com"
|
|
138
138
|
api_root: http://api.staging.example.com/v0
|
|
139
139
|
welcome_message: I'm A Staging Server
|
|
140
140
|
production:
|
|
141
|
-
|
|
141
|
+
host: "example.com"
|
|
142
142
|
api_root: http://api.example.com/v0
|
|
143
143
|
welcome_message: I'm A Production Server
|
|
144
144
|
development:
|
data/lib/frizz/site.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module Frizz
|
|
2
2
|
class Site
|
|
3
|
-
def initialize(
|
|
3
|
+
def initialize(host, options={})
|
|
4
4
|
@options = { from: "build" }.merge options
|
|
5
5
|
@local = Frizz::Local.new(path_to_deploy)
|
|
6
|
-
@remote = Frizz::Remote.new(
|
|
6
|
+
@remote = Frizz::Remote.new(host)
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def deploy!
|
data/lib/frizz/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: frizz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.0
|
|
5
|
+
version: 1.0.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- patbenatar
|
|
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
127
127
|
- !ruby/object:Gem::Version
|
|
128
128
|
segments:
|
|
129
129
|
- 0
|
|
130
|
-
hash:
|
|
130
|
+
hash: 9299230037300852
|
|
131
131
|
version: '0'
|
|
132
132
|
none: false
|
|
133
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
137
|
segments:
|
|
138
138
|
- 0
|
|
139
|
-
hash:
|
|
139
|
+
hash: 9299230037300852
|
|
140
140
|
version: '0'
|
|
141
141
|
none: false
|
|
142
142
|
requirements: []
|