frizz 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -1
- data/lib/frizz/site.rb +4 -3
- data/lib/frizz/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Frizz
|
2
2
|
|
3
|
-
Frizz is a utility for deploying static sites to S3.
|
3
|
+
Frizz is a utility for deploying static sites to S3. It also comes with
|
4
|
+
some nifty Middleman integrations for managing environments.
|
4
5
|
|
5
6
|
## Features
|
6
7
|
|
@@ -8,6 +9,11 @@ Frizz is a utility for deploying static sites to S3.
|
|
8
9
|
* Only uploads files that have changed
|
9
10
|
* Removes files that have been deleted locally
|
10
11
|
|
12
|
+
### Middleman Features
|
13
|
+
|
14
|
+
* Free rake tasks for building and deploying your environments
|
15
|
+
* Accessing environment-specific configurations from your views
|
16
|
+
|
11
17
|
## Installation
|
12
18
|
|
13
19
|
Add this line to your application's Gemfile:
|
@@ -46,11 +52,20 @@ end
|
|
46
52
|
|
47
53
|
### Basic deploys
|
48
54
|
|
55
|
+
Deploy the contents of `build/` to your static website bucket named
|
56
|
+
"my-bucket-name.com":
|
57
|
+
|
49
58
|
```ruby
|
50
59
|
site = Frizz::Site.new("my-bucket-name.com")
|
51
60
|
site.deploy!
|
52
61
|
```
|
53
62
|
|
63
|
+
Specify a different local build dir:
|
64
|
+
|
65
|
+
```ruby
|
66
|
+
site = Frizz::Site.new("my-bucket-name.com", from: "build/public")
|
67
|
+
```
|
68
|
+
|
54
69
|
## Usage With Middleman
|
55
70
|
|
56
71
|
Managing more than the basic two environments (dev and build) in a Middleman app
|
data/lib/frizz/site.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Frizz
|
2
2
|
class Site
|
3
|
-
def initialize(bucket_name)
|
3
|
+
def initialize(bucket_name, options={})
|
4
|
+
@options = { from: "build" }.merge options
|
4
5
|
@local = Frizz::Local.new(path_to_deploy)
|
5
6
|
@remote = Frizz::Remote.new(bucket_name)
|
6
7
|
end
|
@@ -11,10 +12,10 @@ module Frizz
|
|
11
12
|
|
12
13
|
private
|
13
14
|
|
14
|
-
attr_reader :local, :remote
|
15
|
+
attr_reader :local, :remote, :options
|
15
16
|
|
16
17
|
def path_to_deploy
|
17
|
-
File.expand_path(
|
18
|
+
File.expand_path(options[:from])
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|
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: 0.0.3
|
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: -132164478044305134
|
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: -132164478044305134
|
140
140
|
version: '0'
|
141
141
|
none: false
|
142
142
|
requirements: []
|