deployments 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -1
- data/lib/deployments/build.rb +1 -1
- data/lib/deployments/version.rb +1 -1
- data/spec/build_spec.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -62,7 +62,7 @@ Request params:
|
|
62
62
|
},
|
63
63
|
:env => "staging",
|
64
64
|
:version => "1.0.1",
|
65
|
-
:
|
65
|
+
:host_name => "staging.example.com"
|
66
66
|
},
|
67
67
|
:api_key => "account api key"
|
68
68
|
}
|
@@ -76,6 +76,13 @@ Also you can use capistrano recipes of the gem, you need to add:
|
|
76
76
|
It will add capistrano hook "after 'deploy'" for pushing deployment details to
|
77
77
|
the server after deploy.
|
78
78
|
|
79
|
+
Now you can get request version.txt file from public folder, it will show the
|
80
|
+
latest tag name of the project.
|
81
|
+
|
82
|
+
```
|
83
|
+
http://your-site/version.txt
|
84
|
+
```
|
85
|
+
|
79
86
|
## Contributing
|
80
87
|
|
81
88
|
1. Fork it
|
data/lib/deployments/build.rb
CHANGED
data/lib/deployments/version.rb
CHANGED
data/spec/build_spec.rb
CHANGED
@@ -24,7 +24,7 @@ describe Build do
|
|
24
24
|
|
25
25
|
it "should return domain by env" do
|
26
26
|
build.should_receive(:domain).and_return("staging.example.com")
|
27
|
-
params[:
|
27
|
+
params[:host_name].should == "staging.example.com"
|
28
28
|
end
|
29
29
|
|
30
30
|
it "should return api key dedicated to the env" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deployments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: curb
|