blazing 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -3
- data/lib/blazing/config.rb +1 -1
- data/lib/blazing/recipe.rb +9 -4
- data/lib/blazing/runner.rb +2 -2
- data/lib/blazing/templates/config.erb +9 -6
- data/lib/blazing/templates/hook.erb +1 -1
- data/lib/blazing/version.rb +1 -1
- data/spec/blazing/recipe_spec.rb +20 -0
- data/spec/support/gemfile_with_comments +2 -0
- data/spec/support/gemfile_with_versions +2 -0
- data/spec/support/gemfile_without_versions +2 -0
- metadata +29 -22
data/CHANGELOG.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
## master
|
2
|
+
|
3
|
+
none
|
4
|
+
|
5
|
+
## 0.1.1 - October 25, 2011
|
6
|
+
|
7
|
+
* [BUGFIX]: fix #48: dont bundle test and dev gems, do it quietly ([@effkay][])
|
8
|
+
* [BUGFIX]: fix #44: accept target as argument ([@effkay][])
|
9
|
+
* [BUGFIX]: fix #41: recipe gem loading issues resolved
|
10
|
+
* [DOCS]: remove documentation of external recipes ([@effkay][])
|
11
|
+
|
12
|
+
## 0.1.0 - October 24, 2011
|
13
|
+
|
14
|
+
[@effkay]: https://github.com/effkay
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -78,10 +78,7 @@ Right now blazing does the following things out of the box:
|
|
78
78
|
Run all recipes? Well yes, blazing can be extended by recipes. So far, these are available:
|
79
79
|
|
80
80
|
* [blazing-passenger](https://github.com/effkay/blazing-passenger)
|
81
|
-
* `:passenger_restart` will touch `tmp/retart.txt`
|
82
|
-
* `:passenger_kickstart, :url => 'http:://somehost'` will do a get requst on somehost to kickstart passenger
|
83
81
|
* [blazing-rails](https://github.com/effkay/blazing-rails)
|
84
|
-
* `:precompile_assets` will precompile the assets when deploying
|
85
82
|
|
86
83
|
Feel free to roll your own recipes!
|
87
84
|
|
data/lib/blazing/config.rb
CHANGED
data/lib/blazing/recipe.rb
CHANGED
@@ -25,9 +25,15 @@ class Blazing::Recipe
|
|
25
25
|
descendants
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
29
|
-
|
30
|
-
|
28
|
+
def load_recipes
|
29
|
+
load_recipe_gems(parse_gemfile)
|
30
|
+
end
|
31
|
+
|
32
|
+
def parse_gemfile(gemfile = 'Gemfile')
|
33
|
+
open(gemfile).grep(/blazing-/).map { |l| l.match(/blazing-(\w+)/)[0] }
|
34
|
+
end
|
35
|
+
|
36
|
+
def load_recipe_gems(gems)
|
31
37
|
gems.each do |gem|
|
32
38
|
gem_lib_path = $:.find { |p| p.include? gem }
|
33
39
|
recipes_path = File.join(gem_lib_path, gem, 'recipes')
|
@@ -37,5 +43,4 @@ class Blazing::Recipe
|
|
37
43
|
end
|
38
44
|
|
39
45
|
end
|
40
|
-
|
41
46
|
end
|
data/lib/blazing/runner.rb
CHANGED
@@ -14,17 +14,20 @@
|
|
14
14
|
# target :staging, 'blazing@production.server.com:/where/your/code/is/shipped/to', :default => true
|
15
15
|
|
16
16
|
#
|
17
|
-
#
|
17
|
+
# Optional: RVM handling
|
18
18
|
#
|
19
|
-
|
20
19
|
# Use Ruby Enterprise Edition and gemset 123
|
21
|
-
#
|
20
|
+
# rvm 'ree@123'
|
22
21
|
|
23
22
|
# Or use the rvmrc
|
24
|
-
#
|
23
|
+
# rvm :rvmrc
|
24
|
+
#
|
25
25
|
|
26
|
-
#
|
27
|
-
#
|
26
|
+
#
|
27
|
+
# Define Recipes to be used (See the README for available recipes).
|
28
|
+
# Recipes are run in the order they are specified
|
29
|
+
#
|
30
|
+
# recipe :recipe_name
|
28
31
|
|
29
32
|
#
|
30
33
|
# Define a rake task that should be run after deployment. The rake task will run after the recipes have run.
|
data/lib/blazing/version.rb
CHANGED
data/spec/blazing/recipe_spec.rb
CHANGED
@@ -20,4 +20,24 @@ describe Blazing::Recipe do
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
describe '.parse_gemfile' do
|
24
|
+
|
25
|
+
it 'works when the recipe gems are specified with versions' do
|
26
|
+
gemfile = 'spec/support/gemfile_with_versions'
|
27
|
+
Blazing::Recipe.parse_gemfile(gemfile).should == ["blazing-passenger", "blazing-rails"]
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'works when the recipe gems are specified without' do
|
31
|
+
gemfile = 'spec/support/gemfile_without_versions'
|
32
|
+
Blazing::Recipe.parse_gemfile(gemfile).should == ["blazing-passenger", "blazing-rails"]
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'does not load gems that are commented out' do
|
36
|
+
pending
|
37
|
+
gemfile = 'spec/support/gemfile_with_comments'
|
38
|
+
Blazing::Recipe.parse_gemfile(gemfile).should == ["blazing-passenger"]
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
23
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blazing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-25 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
16
|
-
requirement: &
|
16
|
+
requirement: &70305205865040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70305205865040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70305205864540 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.2
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70305205864540
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70305205864120 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70305205864120
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: guard
|
49
|
-
requirement: &
|
49
|
+
requirement: &70305205863620 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70305205863620
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: guard-rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70305205863200 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70305205863200
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: growl
|
71
|
-
requirement: &
|
71
|
+
requirement: &70305205862780 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70305205862780
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rb-fsevent
|
82
|
-
requirement: &
|
82
|
+
requirement: &70305205862360 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70305205862360
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: grit
|
93
|
-
requirement: &
|
93
|
+
requirement: &70305205861940 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70305205861940
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: activesupport
|
104
|
-
requirement: &
|
104
|
+
requirement: &70305205861520 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70305205861520
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: i18n
|
115
|
-
requirement: &
|
115
|
+
requirement: &70305205861100 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70305205861100
|
124
124
|
description: git push deployent utility, ready to be extended by your own recipes
|
125
125
|
email:
|
126
126
|
- felipekaufmann@gmail.com
|
@@ -131,6 +131,7 @@ extra_rdoc_files: []
|
|
131
131
|
files:
|
132
132
|
- .gitignore
|
133
133
|
- .rvmrc
|
134
|
+
- CHANGELOG.md
|
134
135
|
- Gemfile
|
135
136
|
- Gemfile.lock
|
136
137
|
- Guardfile
|
@@ -163,6 +164,9 @@ files:
|
|
163
164
|
- spec/blazing/target_spec.rb
|
164
165
|
- spec/spec_helper.rb
|
165
166
|
- spec/support/empty_config.rb
|
167
|
+
- spec/support/gemfile_with_comments
|
168
|
+
- spec/support/gemfile_with_versions
|
169
|
+
- spec/support/gemfile_without_versions
|
166
170
|
homepage: https://github.com/effkay/blazing
|
167
171
|
licenses: []
|
168
172
|
post_install_message:
|
@@ -200,3 +204,6 @@ test_files:
|
|
200
204
|
- spec/blazing/target_spec.rb
|
201
205
|
- spec/spec_helper.rb
|
202
206
|
- spec/support/empty_config.rb
|
207
|
+
- spec/support/gemfile_with_comments
|
208
|
+
- spec/support/gemfile_with_versions
|
209
|
+
- spec/support/gemfile_without_versions
|