fezzik 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO.md +2 -0
- data/bin/fez +1 -0
- data/bin/fezify +8 -3
- data/fezzik.gemspec +2 -1
- data/lib/fezzik.rb +9 -2
- metadata +22 -6
data/TODO.md
CHANGED
data/bin/fez
CHANGED
data/bin/fezify
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
require "colorize"
|
2
3
|
|
3
4
|
files = {
|
4
5
|
"config/deploy.rb" => <<-EOF,
|
@@ -23,6 +24,9 @@ set :user, "root"
|
|
23
24
|
# You can set environment variables that will be loaded at runtime on the server
|
24
25
|
# like this:
|
25
26
|
# env :rack_env, "production"
|
27
|
+
# This will also generate a file on the server named config/environment.rb, which you can include
|
28
|
+
# in your code to load these variables as Ruby constants. You can create your own config/environment.rb
|
29
|
+
# file to use for development, and it will be overwritten at runtime.
|
26
30
|
|
27
31
|
destination :dev do
|
28
32
|
set :domain, "#\{user\}@dev.example.com"
|
@@ -65,7 +69,8 @@ namespace :fezzik do
|
|
65
69
|
end
|
66
70
|
|
67
71
|
remote_task :push => [:stage, :setup] do
|
68
|
-
|
72
|
+
puts "pushing to #\{target_host\}"
|
73
|
+
rsync "-q", "/tmp/#\{app\}/", "#\{target_host\}:#\{release_path\}"
|
69
74
|
end
|
70
75
|
|
71
76
|
remote_task :symlink => :push do
|
@@ -109,7 +114,7 @@ files.each do |filename, content|
|
|
109
114
|
if File.exists?(filename) && ARGV[0] != "-f"
|
110
115
|
puts " [skip] #{filename} already exists"
|
111
116
|
else
|
112
|
-
puts " [new] #{filename} created"
|
117
|
+
puts " [new] #{filename} created".green
|
113
118
|
File.open(filename, "w") { |file| file.write(content) }
|
114
119
|
if filename == "bin/run_app.sh"
|
115
120
|
system("chmod a+x bin/run_app.sh")
|
@@ -117,4 +122,4 @@ files.each do |filename, content|
|
|
117
122
|
end
|
118
123
|
end
|
119
124
|
|
120
|
-
puts " [done]"
|
125
|
+
puts " [done]".green
|
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.2"
|
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=
|
@@ -24,4 +24,5 @@ Gem::Specification.new do |s|
|
|
24
24
|
)
|
25
25
|
s.add_dependency("rake", ">=0.8.7")
|
26
26
|
s.add_dependency("rake-remote_task", ">=2.0.2")
|
27
|
+
s.add_dependency("colorize", ">=0.5.8")
|
27
28
|
end
|
data/lib/fezzik.rb
CHANGED
@@ -8,8 +8,15 @@ namespace :fezzik do
|
|
8
8
|
destination = $1 if destination.match(/to_(.+)/)
|
9
9
|
tasks = ARGV[1..-1]
|
10
10
|
Rake::Task["fezzik:load_config"].invoke destination
|
11
|
-
|
12
|
-
|
11
|
+
begin
|
12
|
+
tasks.each do |task|
|
13
|
+
Rake::Task["fezzik:#{task}"].invoke
|
14
|
+
end
|
15
|
+
puts "[success]".green
|
16
|
+
rescue Exception => e
|
17
|
+
puts e.message
|
18
|
+
puts e.backtrace
|
19
|
+
puts "[fail]".red
|
13
20
|
end
|
14
21
|
end
|
15
22
|
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 31
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
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-03-
|
18
|
+
date: 2011-03-03 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -50,6 +50,22 @@ dependencies:
|
|
50
50
|
version: 2.0.2
|
51
51
|
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: colorize
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 27
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 5
|
65
|
+
- 8
|
66
|
+
version: 0.5.8
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
53
69
|
description: A light deployment system that gets out of your way
|
54
70
|
email: dmacdougall@gmail.com
|
55
71
|
executables:
|
@@ -96,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
112
|
requirements: []
|
97
113
|
|
98
114
|
rubyforge_project: fezzik
|
99
|
-
rubygems_version: 1.
|
115
|
+
rubygems_version: 1.3.7
|
100
116
|
signing_key:
|
101
117
|
specification_version: 2
|
102
118
|
summary: A light deployment system that gets out of your way
|