fezzik 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -0
- data/fezzik.gemspec +1 -1
- data/lib/fezzik.rb +4 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -21,6 +21,7 @@ and gets out of your way.
|
|
21
21
|
[done]
|
22
22
|
|
23
23
|
**config/deploy.rb**: set your app name and destination servers
|
24
|
+
|
24
25
|
set :app, "fezzik"
|
25
26
|
...
|
26
27
|
destination :prod do
|
@@ -28,10 +29,12 @@ and gets out of your way.
|
|
28
29
|
end
|
29
30
|
|
30
31
|
**bin/run_app.sh**: write a command that will start your app
|
32
|
+
|
31
33
|
#!/bin/sh
|
32
34
|
nohup ruby server.rb > /dev/null 2>&1 &
|
33
35
|
|
34
36
|
Ready to deploy!
|
37
|
+
|
35
38
|
$ fez to_prod deploy
|
36
39
|
...
|
37
40
|
fezzik deployed!
|
data/fezzik.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "fezzik"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.5"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">=0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
data/lib/fezzik.rb
CHANGED
@@ -13,7 +13,7 @@ namespace :fezzik do
|
|
13
13
|
Rake::Task["fezzik:#{task}"].invoke
|
14
14
|
end
|
15
15
|
puts "[success]".green
|
16
|
-
rescue SystemExit => e
|
16
|
+
rescue SystemExit, Rake::CommandFailedError => e
|
17
17
|
puts "[fail]".red
|
18
18
|
exit 1
|
19
19
|
rescue Exception => e
|
@@ -28,7 +28,9 @@ namespace :fezzik do
|
|
28
28
|
@destination = args[:destination].to_sym
|
29
29
|
@environment = {}
|
30
30
|
require "./config/deploy.rb"
|
31
|
-
|
31
|
+
servers = domain
|
32
|
+
servers = domain.join(", ") if domain.is_a?(Array)
|
33
|
+
puts "configuring for #{servers}"
|
32
34
|
end
|
33
35
|
|
34
36
|
def destination(target, &block)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fezzik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel MacDougall
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-12 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|