blazing 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ pkg/*
4
4
  *.swp
5
5
  *.DS_Store
6
6
  tags
7
+ .idea
data/README CHANGED
@@ -29,3 +29,31 @@ Or just use
29
29
  git push <target_name>
30
30
 
31
31
  which does basically the same
32
+
33
+ === Roadmap
34
+
35
+ You have guessed it, and the version number does not lie. This is all in early development. So here's my little roadmap, aka the backlog:
36
+
37
+ * recipe extension system
38
+ * disable colored log output
39
+ * cleanup logging
40
+ * sync fs recipes
41
+ * sync db recipes for
42
+ * mysql
43
+ * postgres
44
+ * mongodb
45
+ * redis
46
+
47
+ * hoptoad notifier
48
+ * maintenance page recipe
49
+ * rollback recipe/feature
50
+ * rvm recipe
51
+ * bundler recipe
52
+ * whenever recipe
53
+ * coffescript recipe
54
+ * sass recipe
55
+ * passenger recipe
56
+ * unicorn recipe
57
+ * apache recipe
58
+ * nginx recipe
59
+ * nanoc deploy
@@ -4,7 +4,4 @@
4
4
 
5
5
  repository '<%= repository %>'
6
6
 
7
- target 'agoodname', :deploy_to => 'user@host:path/to/your/app'
8
-
9
- use 'rvm', :ruby => 'set_your_ruby@and_your_gemset'
10
- use 'bundler'
7
+ target :default, :deploy_to => '<%= target %>'
@@ -1,3 +1,3 @@
1
1
  module Blazing
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Felipe Kaufmann
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-31 00:00:00 +01:00
17
+ date: 2011-02-01 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -42,29 +42,12 @@ extra_rdoc_files: []
42
42
 
43
43
  files:
44
44
  - .gitignore
45
- - .idea/.rakeTasks
46
- - .idea/blazing.iml
47
- - .idea/dictionaries/felipe.xml
48
- - .idea/encodings.xml
49
- - .idea/misc.xml
50
- - .idea/modules.xml
51
- - .idea/vcs.xml
52
- - .idea/workspace.xml
53
45
  - Gemfile
54
46
  - Gemfile.lock
55
47
  - README
56
48
  - Rakefile
57
- - TODO
58
49
  - bin/blazing
59
50
  - blazing.gemspec
60
- - lib/_old/blazing.rb
61
- - lib/_old/blazing/base.rb
62
- - lib/_old/blazing/cli.rb
63
- - lib/_old/blazing/config.rb
64
- - lib/_old/blazing/config/helper.rb
65
- - lib/_old/blazing/remote.rb
66
- - lib/_old/blazing/target.rb
67
- - lib/_old/blazing/version.rb
68
51
  - lib/blazing.rb
69
52
  - lib/blazing/cli/base.rb
70
53
  - lib/blazing/cli/create.rb
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -1,36 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="GemRequirementsHolder" version="3">
4
- <requirement>
5
- <requirement>
6
- <dependency name="rspec" version="0" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
7
- </requirement>
8
- <source from="Gemfile" />
9
- </requirement>
10
- <requirement>
11
- <requirement>
12
- <dependency name="ruby-debug19" version="0" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
13
- </requirement>
14
- <source from="Gemfile" />
15
- </requirement>
16
- </component>
17
- <component name="NewModuleRootManager">
18
- <content url="file://$MODULE_DIR$" />
19
- <orderEntry type="inheritedJdk" />
20
- <orderEntry type="sourceFolder" forTests="false" />
21
- <orderEntry type="library" scope="PROVIDED" name="[gem] rake (v0.8.7, /Users/felipe/.rvm/gems/ruby-1.9.2-p0@global/gems/rake-0.8.7)" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="[gem] bundler (v1.0.7, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.7)" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="[gem] ruby-debug19 (v0.11.6, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug19-0.11.6)" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="[gem] rspec (v2.4.0, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/rspec-2.4.0)" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="[gem] ruby_core_source (v0.1.4, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/ruby_core_source-0.1.4)" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="[gem] columnize (v0.3.2, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/columnize-0.3.2)" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="[gem] linecache19 (v0.5.11, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/linecache19-0.5.11)" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="[gem] archive-tar-minitar (v0.5.2, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/archive-tar-minitar-0.5.2)" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="[gem] diff-lcs (v1.1.2, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/diff-lcs-1.1.2)" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="[gem] rspec-core (v2.4.0, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.4.0)" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="[gem] ruby-debug-base19 (v0.11.24, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.24)" level="application" />
32
- <orderEntry type="library" scope="PROVIDED" name="[gem] rspec-mocks (v2.4.0, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/rspec-mocks-2.4.0)" level="application" />
33
- <orderEntry type="library" scope="PROVIDED" name="[gem] rspec-expectations (v2.4.0, /Users/felipe/.rvm/gems/ruby-1.9.2-p0/gems/rspec-expectations-2.4.0)" level="application" />
34
- </component>
35
- </module>
36
-
@@ -1,3 +0,0 @@
1
- <component name="ProjectDictionaryState">
2
- <dictionary name="felipe" />
3
- </component>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
- </project>
5
-
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="DependencyValidationManager">
4
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" project-jdk-name="Ruby SDK 1.9.2-p0" project-jdk-type="RUBY_SDK" />
7
- </project>
8
-
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/blazing.iml" filepath="$PROJECT_DIR$/.idea/blazing.iml" />
6
- </modules>
7
- </component>
8
- </project>
9
-
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="" />
5
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
6
- </component>
7
- </project>
8
-
@@ -1,587 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="8ab041bc-682d-4adb-9630-2d4cba06f583" name="Default" comment="">
5
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/blazing/cli/templates/blazing.tt" />
6
- <change type="DELETED" beforePath="$PROJECT_DIR$/lib/blazing/base.rb" afterPath="" />
7
- <change type="DELETED" beforePath="$PROJECT_DIR$/lib/blazing/cli.rb" afterPath="" />
8
- <change type="DELETED" beforePath="$PROJECT_DIR$/lib/blazing/config/helper.rb" afterPath="" />
9
- <change type="DELETED" beforePath="$PROJECT_DIR$/lib/blazing/remote.rb" afterPath="" />
10
- <change type="DELETED" beforePath="$PROJECT_DIR$/lib/blazing/templates/blazing.tt" afterPath="" />
11
- <change type="DELETED" beforePath="$PROJECT_DIR$/lib/blazing/version.rb" afterPath="" />
12
- <change type="MOVED" beforePath="$PROJECT_DIR$/lib/blazing/templates/post-hook.tt" afterPath="$PROJECT_DIR$/lib/blazing/cli/templates/post-hook.tt" />
13
- <change type="MOVED" beforePath="$PROJECT_DIR$/lib/blazing/templates/pre-hook.tt" afterPath="$PROJECT_DIR$/lib/blazing/cli/templates/pre-hook.tt" />
14
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/blazing" afterPath="$PROJECT_DIR$/bin/blazing" />
15
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/blazing.gemspec" afterPath="$PROJECT_DIR$/blazing.gemspec" />
16
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/blazing.rb" afterPath="$PROJECT_DIR$/lib/blazing.rb" />
17
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/blazing/config.rb" afterPath="$PROJECT_DIR$/lib/blazing/config.rb" />
18
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/blazing/target.rb" afterPath="$PROJECT_DIR$/lib/blazing/target.rb" />
19
- </list>
20
- <ignored path="blazing.iws" />
21
- <ignored path=".idea/workspace.xml" />
22
- <option name="TRACKING_ENABLED" value="true" />
23
- <option name="SHOW_DIALOG" value="false" />
24
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
25
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
26
- <option name="LAST_RESOLUTION" value="IGNORE" />
27
- </component>
28
- <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
29
- <component name="CreatePatchCommitExecutor">
30
- <option name="PATCH_PATH" value="" />
31
- <option name="REVERSE_PATCH" value="false" />
32
- </component>
33
- <component name="DaemonCodeAnalyzer">
34
- <disable_hints />
35
- </component>
36
- <component name="FavoritesManager">
37
- <favorites_list name="blazing" />
38
- </component>
39
- <component name="FileColors" enabled="true" enabledForTabs="true" showNonProject="false" />
40
- <component name="FileEditorManager">
41
- <leaf>
42
- <file leaf-file-name="blazing.rb" pinned="false" current="false" current-in-tab="false">
43
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing.rb">
44
- <provider selected="true" editor-type-id="text-editor">
45
- <state line="6" column="18" selection-start="124" selection-end="124" vertical-scroll-proportion="0.0">
46
- <folding />
47
- </state>
48
- </provider>
49
- </entry>
50
- </file>
51
- <file leaf-file-name="blazing" pinned="false" current="false" current-in-tab="false">
52
- <entry file="file://$PROJECT_DIR$/bin/blazing">
53
- <provider selected="true" editor-type-id="text-editor">
54
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
55
- <folding />
56
- </state>
57
- </provider>
58
- </entry>
59
- </file>
60
- <file leaf-file-name="base.rb" pinned="false" current="false" current-in-tab="false">
61
- <entry file="file://$PROJECT_DIR$/lib/blazing/cli/base.rb">
62
- <provider selected="true" editor-type-id="text-editor">
63
- <state line="2" column="0" selection-start="28" selection-end="28" vertical-scroll-proportion="0.0">
64
- <folding>
65
- <marker date="1295992055000" expanded="true" signature="50:1254" placeholder=" ... end" />
66
- </folding>
67
- </state>
68
- </provider>
69
- </entry>
70
- </file>
71
- <file leaf-file-name="cli.rb" pinned="false" current="false" current-in-tab="false">
72
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/cli.rb">
73
- <provider selected="true" editor-type-id="text-editor">
74
- <state line="10" column="40" selection-start="294" selection-end="294" vertical-scroll-proportion="0.0">
75
- <folding />
76
- </state>
77
- </provider>
78
- </entry>
79
- </file>
80
- <file leaf-file-name="helper.rb" pinned="false" current="false" current-in-tab="false">
81
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/config/helper.rb">
82
- <provider selected="true" editor-type-id="text-editor">
83
- <state line="12" column="7" selection-start="339" selection-end="339" vertical-scroll-proportion="0.0">
84
- <folding />
85
- </state>
86
- </provider>
87
- </entry>
88
- </file>
89
- <file leaf-file-name="config.rb" pinned="false" current="false" current-in-tab="false">
90
- <entry file="file://$PROJECT_DIR$/lib/blazing/config.rb">
91
- <provider selected="true" editor-type-id="text-editor">
92
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
93
- <folding>
94
- <marker date="1295991994000" expanded="true" signature="112:193" placeholder=" ... end" />
95
- <marker date="1295991994000" expanded="true" signature="220:318" placeholder=" ... end" />
96
- <marker date="1295991994000" expanded="true" signature="434:691" placeholder=" ... end" />
97
- <marker date="1295991994000" expanded="true" signature="441:683" placeholder="case ... end" />
98
- <marker date="1295991994000" expanded="true" signature="489:520" placeholder="{ ... }" />
99
- <marker date="1295991994000" expanded="true" signature="728:788" placeholder=" ... end" />
100
- <marker date="1295991994000" expanded="true" signature="824:922" placeholder=" ... end" />
101
- <marker date="1295991994000" expanded="true" signature="953:1041" placeholder=" ... end" />
102
- <marker date="1295991994000" expanded="true" signature="1066:1081" placeholder=" ... end" />
103
- </folding>
104
- </state>
105
- </provider>
106
- </entry>
107
- </file>
108
- <file leaf-file-name="config.rb" pinned="false" current="false" current-in-tab="false">
109
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/config.rb">
110
- <provider selected="true" editor-type-id="text-editor">
111
- <state line="27" column="22" selection-start="547" selection-end="547" vertical-scroll-proportion="0.0">
112
- <folding />
113
- </state>
114
- </provider>
115
- </entry>
116
- </file>
117
- <file leaf-file-name="base.rb" pinned="false" current="false" current-in-tab="false">
118
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/base.rb">
119
- <provider selected="true" editor-type-id="text-editor">
120
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
121
- <folding />
122
- </state>
123
- </provider>
124
- </entry>
125
- </file>
126
- <file leaf-file-name="remote.rb" pinned="false" current="false" current-in-tab="false">
127
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/remote.rb">
128
- <provider selected="true" editor-type-id="text-editor">
129
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
130
- <folding />
131
- </state>
132
- </provider>
133
- </entry>
134
- </file>
135
- <file leaf-file-name="target.rb" pinned="false" current="true" current-in-tab="true">
136
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/target.rb">
137
- <provider selected="true" editor-type-id="text-editor">
138
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
139
- <folding />
140
- </state>
141
- </provider>
142
- </entry>
143
- </file>
144
- </leaf>
145
- </component>
146
- <component name="FindManager">
147
- <FindUsagesManager>
148
- <setting name="OPEN_NEW_TAB" value="false" />
149
- </FindUsagesManager>
150
- </component>
151
- <component name="Git.Branch.Configurations">
152
- <option name="CURRENT" value="master" />
153
- <option name="CONFIGURATIONS">
154
- <array>
155
- <BranchConfiguration>
156
- <option name="IS_AUTO_DETECTED" value="true" />
157
- <option name="NAME" value="master" />
158
- <option name="BRANCHES">
159
- <array>
160
- <BranchInfo>
161
- <option name="ROOT" value="$PROJECT_DIR$" />
162
- <option name="REFERENCE" value="master" />
163
- </BranchInfo>
164
- </array>
165
- </option>
166
- </BranchConfiguration>
167
- </array>
168
- </option>
169
- </component>
170
- <component name="Git.Settings">
171
- <option name="GIT_EXECUTABLE" value="/usr/local/bin/git" />
172
- <option name="CHECKOUT_INCLUDE_TAGS" value="false" />
173
- <option name="UPDATE_CHANGES_POLICY" value="STASH" />
174
- </component>
175
- <component name="IdeDocumentHistory">
176
- <option name="changedFiles">
177
- <list>
178
- <option value="$PROJECT_DIR$/bin/blazing" />
179
- <option value="$PROJECT_DIR$/lib/blazing/cli/base.rb" />
180
- <option value="$PROJECT_DIR$/lib/_old/blazing/config/helper.rb" />
181
- <option value="$PROJECT_DIR$/lib/_old/blazing/config.rb" />
182
- <option value="$PROJECT_DIR$/lib/_old/blazing/target.rb" />
183
- </list>
184
- </option>
185
- </component>
186
- <component name="ProjectLevelVcsManager">
187
- <OptionsSetting value="true" id="Add" />
188
- <OptionsSetting value="true" id="Remove" />
189
- <OptionsSetting value="true" id="Checkout" />
190
- <OptionsSetting value="true" id="Update" />
191
- <OptionsSetting value="true" id="Status" />
192
- <OptionsSetting value="true" id="Edit" />
193
- <ConfirmationsSetting value="1" id="Add" />
194
- <ConfirmationsSetting value="0" id="Remove" />
195
- </component>
196
- <component name="ProjectReloadState">
197
- <option name="STATE" value="0" />
198
- </component>
199
- <component name="ProjectView">
200
- <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
201
- <flattenPackages />
202
- <showMembers />
203
- <showModules />
204
- <showLibraryContents />
205
- <hideEmptyPackages />
206
- <abbreviatePackageNames />
207
- <autoscrollToSource />
208
- <autoscrollFromSource />
209
- <sortByType />
210
- </navigator>
211
- <panes>
212
- <pane id="Favorites" />
213
- <pane id="Scope" />
214
- <pane id="ProjectPane">
215
- <subPane>
216
- <PATH>
217
- <PATH_ELEMENT>
218
- <option name="myItemId" value="blazing" />
219
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
220
- </PATH_ELEMENT>
221
- </PATH>
222
- <PATH>
223
- <PATH_ELEMENT>
224
- <option name="myItemId" value="blazing" />
225
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
226
- </PATH_ELEMENT>
227
- <PATH_ELEMENT>
228
- <option name="myItemId" value="blazing" />
229
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
230
- </PATH_ELEMENT>
231
- </PATH>
232
- <PATH>
233
- <PATH_ELEMENT>
234
- <option name="myItemId" value="blazing" />
235
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
236
- </PATH_ELEMENT>
237
- <PATH_ELEMENT>
238
- <option name="myItemId" value="blazing" />
239
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
240
- </PATH_ELEMENT>
241
- <PATH_ELEMENT>
242
- <option name="myItemId" value="lib" />
243
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
244
- </PATH_ELEMENT>
245
- </PATH>
246
- <PATH>
247
- <PATH_ELEMENT>
248
- <option name="myItemId" value="blazing" />
249
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
250
- </PATH_ELEMENT>
251
- <PATH_ELEMENT>
252
- <option name="myItemId" value="blazing" />
253
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
254
- </PATH_ELEMENT>
255
- <PATH_ELEMENT>
256
- <option name="myItemId" value="lib" />
257
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
258
- </PATH_ELEMENT>
259
- <PATH_ELEMENT>
260
- <option name="myItemId" value="blazing" />
261
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
262
- </PATH_ELEMENT>
263
- </PATH>
264
- <PATH>
265
- <PATH_ELEMENT>
266
- <option name="myItemId" value="blazing" />
267
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
268
- </PATH_ELEMENT>
269
- <PATH_ELEMENT>
270
- <option name="myItemId" value="blazing" />
271
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
272
- </PATH_ELEMENT>
273
- <PATH_ELEMENT>
274
- <option name="myItemId" value="lib" />
275
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
276
- </PATH_ELEMENT>
277
- <PATH_ELEMENT>
278
- <option name="myItemId" value="blazing" />
279
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
280
- </PATH_ELEMENT>
281
- <PATH_ELEMENT>
282
- <option name="myItemId" value="cli" />
283
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
284
- </PATH_ELEMENT>
285
- </PATH>
286
- <PATH>
287
- <PATH_ELEMENT>
288
- <option name="myItemId" value="blazing" />
289
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
290
- </PATH_ELEMENT>
291
- <PATH_ELEMENT>
292
- <option name="myItemId" value="blazing" />
293
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
294
- </PATH_ELEMENT>
295
- <PATH_ELEMENT>
296
- <option name="myItemId" value="lib" />
297
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
298
- </PATH_ELEMENT>
299
- <PATH_ELEMENT>
300
- <option name="myItemId" value="_old" />
301
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
302
- </PATH_ELEMENT>
303
- </PATH>
304
- <PATH>
305
- <PATH_ELEMENT>
306
- <option name="myItemId" value="blazing" />
307
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
308
- </PATH_ELEMENT>
309
- <PATH_ELEMENT>
310
- <option name="myItemId" value="blazing" />
311
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
312
- </PATH_ELEMENT>
313
- <PATH_ELEMENT>
314
- <option name="myItemId" value="lib" />
315
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
316
- </PATH_ELEMENT>
317
- <PATH_ELEMENT>
318
- <option name="myItemId" value="_old" />
319
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
320
- </PATH_ELEMENT>
321
- <PATH_ELEMENT>
322
- <option name="myItemId" value="blazing" />
323
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
324
- </PATH_ELEMENT>
325
- </PATH>
326
- <PATH>
327
- <PATH_ELEMENT>
328
- <option name="myItemId" value="blazing" />
329
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
330
- </PATH_ELEMENT>
331
- <PATH_ELEMENT>
332
- <option name="myItemId" value="blazing" />
333
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
334
- </PATH_ELEMENT>
335
- <PATH_ELEMENT>
336
- <option name="myItemId" value="lib" />
337
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
338
- </PATH_ELEMENT>
339
- <PATH_ELEMENT>
340
- <option name="myItemId" value="_old" />
341
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
342
- </PATH_ELEMENT>
343
- <PATH_ELEMENT>
344
- <option name="myItemId" value="blazing" />
345
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
346
- </PATH_ELEMENT>
347
- <PATH_ELEMENT>
348
- <option name="myItemId" value="config" />
349
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
350
- </PATH_ELEMENT>
351
- </PATH>
352
- <PATH>
353
- <PATH_ELEMENT>
354
- <option name="myItemId" value="blazing" />
355
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
356
- </PATH_ELEMENT>
357
- <PATH_ELEMENT>
358
- <option name="myItemId" value="blazing" />
359
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
360
- </PATH_ELEMENT>
361
- <PATH_ELEMENT>
362
- <option name="myItemId" value="bin" />
363
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
364
- </PATH_ELEMENT>
365
- </PATH>
366
- </subPane>
367
- </pane>
368
- </panes>
369
- </component>
370
- <component name="PropertiesComponent">
371
- <property name="options.splitter.main.proportions" value="0.3" />
372
- <property name="options.lastSelected" value="reference.settingsdialog.IDE.editor.colors" />
373
- <property name="options.splitter.details.proportions" value="0.2" />
374
- <property name="options.searchVisible" value="true" />
375
- </component>
376
- <component name="RunManager">
377
- <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
378
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
379
- <module name="" />
380
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
381
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
382
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
383
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
384
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
385
- <envs />
386
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
387
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
388
- <COVERAGE_PATTERN ENABLED="true">
389
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
390
- </COVERAGE_PATTERN>
391
- </EXTENSION>
392
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
393
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
394
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
395
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
396
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
397
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
398
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
399
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
400
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
401
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
402
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
403
- <method />
404
- </configuration>
405
- <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
406
- <module name="" />
407
- <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
408
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
409
- <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
410
- <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
411
- <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
412
- <envs />
413
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
414
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
415
- <COVERAGE_PATTERN ENABLED="true">
416
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
417
- </COVERAGE_PATTERN>
418
- </EXTENSION>
419
- <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
420
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
421
- <method />
422
- </configuration>
423
- <list size="0" />
424
- </component>
425
- <component name="ShelveChangesManager" show_recycled="false" />
426
- <component name="SvnConfiguration" maxAnnotateRevisions="500">
427
- <option name="USER" value="" />
428
- <option name="PASSWORD" value="" />
429
- <option name="LAST_MERGED_REVISION" />
430
- <option name="UPDATE_RUN_STATUS" value="false" />
431
- <option name="MERGE_DRY_RUN" value="false" />
432
- <option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
433
- <option name="UPDATE_LOCK_ON_DEMAND" value="false" />
434
- <option name="IGNORE_SPACES_IN_MERGE" value="false" />
435
- <option name="DETECT_NESTED_COPIES" value="true" />
436
- <option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
437
- <option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
438
- <option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
439
- <myIsUseDefaultProxy>false</myIsUseDefaultProxy>
440
- </component>
441
- <component name="TaskManager">
442
- <task active="true" id="Default" summary="Default task">
443
- <changelist id="8ab041bc-682d-4adb-9630-2d4cba06f583" name="Default" comment="" />
444
- <created>1295596594201</created>
445
- <updated>1295596594201</updated>
446
- </task>
447
- <servers />
448
- </component>
449
- <component name="ToolWindowManager">
450
- <frame x="1238" y="22" width="1239" height="1418" extended-state="0" />
451
- <editor active="true" />
452
- <layout>
453
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
454
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
455
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
456
- <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
457
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16790123" sideWeight="0.670126" order="0" side_tool="false" content_ui="tabs" />
458
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
459
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
460
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
461
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
462
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
463
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
464
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
465
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32987398" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
466
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
467
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
468
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
469
- </layout>
470
- </component>
471
- <component name="VcsManagerConfiguration">
472
- <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
473
- <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
474
- <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
475
- <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
476
- <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
477
- <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
478
- <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
479
- <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
480
- <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
481
- <option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
482
- <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
483
- <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
484
- <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
485
- <option name="LAST_COMMIT_MESSAGE" />
486
- <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
487
- <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
488
- <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
489
- <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
490
- <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
491
- <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
492
- <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
493
- <option name="ACTIVE_VCS_NAME" />
494
- <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
495
- <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
496
- <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
497
- <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
498
- </component>
499
- <component name="XDebuggerManager">
500
- <breakpoint-manager />
501
- </component>
502
- <component name="editorHistoryManager">
503
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing.rb">
504
- <provider selected="true" editor-type-id="text-editor">
505
- <state line="6" column="18" selection-start="124" selection-end="124" vertical-scroll-proportion="0.0">
506
- <folding />
507
- </state>
508
- </provider>
509
- </entry>
510
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/remote.rb">
511
- <provider selected="true" editor-type-id="text-editor">
512
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
513
- <folding />
514
- </state>
515
- </provider>
516
- </entry>
517
- <entry file="file://$PROJECT_DIR$/bin/blazing">
518
- <provider selected="true" editor-type-id="text-editor">
519
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
520
- <folding />
521
- </state>
522
- </provider>
523
- </entry>
524
- <entry file="file://$PROJECT_DIR$/lib/blazing/cli/base.rb">
525
- <provider selected="true" editor-type-id="text-editor">
526
- <state line="2" column="0" selection-start="28" selection-end="28" vertical-scroll-proportion="0.0">
527
- <folding>
528
- <marker date="1295992055000" expanded="true" signature="50:1254" placeholder=" ... end" />
529
- </folding>
530
- </state>
531
- </provider>
532
- </entry>
533
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/base.rb">
534
- <provider selected="true" editor-type-id="text-editor">
535
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
536
- <folding />
537
- </state>
538
- </provider>
539
- </entry>
540
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/cli.rb">
541
- <provider selected="true" editor-type-id="text-editor">
542
- <state line="10" column="40" selection-start="294" selection-end="294" vertical-scroll-proportion="0.0">
543
- <folding />
544
- </state>
545
- </provider>
546
- </entry>
547
- <entry file="file://$PROJECT_DIR$/lib/blazing/config.rb">
548
- <provider selected="true" editor-type-id="text-editor">
549
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
550
- <folding>
551
- <marker date="1295991994000" expanded="true" signature="112:193" placeholder=" ... end" />
552
- <marker date="1295991994000" expanded="true" signature="220:318" placeholder=" ... end" />
553
- <marker date="1295991994000" expanded="true" signature="434:691" placeholder=" ... end" />
554
- <marker date="1295991994000" expanded="true" signature="441:683" placeholder="case ... end" />
555
- <marker date="1295991994000" expanded="true" signature="489:520" placeholder="{ ... }" />
556
- <marker date="1295991994000" expanded="true" signature="728:788" placeholder=" ... end" />
557
- <marker date="1295991994000" expanded="true" signature="824:922" placeholder=" ... end" />
558
- <marker date="1295991994000" expanded="true" signature="953:1041" placeholder=" ... end" />
559
- <marker date="1295991994000" expanded="true" signature="1066:1081" placeholder=" ... end" />
560
- </folding>
561
- </state>
562
- </provider>
563
- </entry>
564
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/config/helper.rb">
565
- <provider selected="true" editor-type-id="text-editor">
566
- <state line="12" column="7" selection-start="339" selection-end="339" vertical-scroll-proportion="0.0">
567
- <folding />
568
- </state>
569
- </provider>
570
- </entry>
571
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/config.rb">
572
- <provider selected="true" editor-type-id="text-editor">
573
- <state line="27" column="22" selection-start="547" selection-end="547" vertical-scroll-proportion="0.0">
574
- <folding />
575
- </state>
576
- </provider>
577
- </entry>
578
- <entry file="file://$PROJECT_DIR$/lib/_old/blazing/target.rb">
579
- <provider selected="true" editor-type-id="text-editor">
580
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
581
- <folding />
582
- </state>
583
- </provider>
584
- </entry>
585
- </component>
586
- </project>
587
-
data/TODO DELETED
@@ -1,9 +0,0 @@
1
- o deploy static site
2
- o deploy static site with maintenance page
3
- o deploy rails apps from SC
4
-
5
- o customizable and modular
6
- o multistage
7
- o sync fs and db flavours
8
-
9
- o recipes should/can live in git submodules
@@ -1,8 +0,0 @@
1
- module Blazing
2
- 'blazing/base'
3
- 'blazing/cli'
4
- 'blazing/version'
5
- 'blazing/config'
6
- 'blazing/remote'
7
- 'blazing/remote'
8
- end
@@ -1,6 +0,0 @@
1
- require 'blazing/config'
2
- require 'blazing/cli'
3
-
4
- module Blazing::Base
5
-
6
- end
@@ -1,43 +0,0 @@
1
- require 'blazing/config'
2
- require 'blazing/config/helper'
3
-
4
- class Blazing::CLI < Thor
5
-
6
- # TODO: optional project directory
7
- desc 'init', 'initialize blazing in project'
8
- def init
9
- username = ask "Deploy User: "
10
- hostname = ask "Target hostname: "
11
- path = ask "Deploy path on server: "
12
- repository = ask "Enter is this projects repository: "
13
- invoke 'blazing:config:create', [username, hostname, path, repository]
14
- end
15
-
16
-
17
- desc 'setup TARGET', 'bootstrap or update blazing setup on remote host and do a first deploy'
18
- def setup(target = nil)
19
-
20
- target = Blazing::Config::Helper.find_target(target)
21
-
22
- if target
23
- say "[BLAZING] -- SETTING UP #{ target.location }", :yellow
24
- invoke 'blazing:remote:setup:setup_repository', [target]
25
- else
26
- say 'no remote specified and no default found in config', :red
27
- end
28
-
29
- end
30
-
31
- desc 'deploy TARGET', 'deploy project with blazing'
32
- def deploy(target=nil)
33
-
34
- target = Blazing::Config::Helper.find_target(target)
35
-
36
- # TODO: optional: specify branch
37
- `git push #{ target.name } master`
38
-
39
- # TODO: check if deployed setup is still uptodate, if not, run setup
40
- # tag and push
41
- end
42
-
43
- end
@@ -1,73 +0,0 @@
1
- require 'thor/group'
2
- require 'blazing/remote'
3
-
4
- class Blazing::Config
5
-
6
- attr_accessor :targets, :file
7
-
8
- def initialize
9
- @targets = []
10
- @file = File.open('config/blazing.rb')
11
- end
12
-
13
- def self.read(&block)
14
- config = Blazing::Config.new
15
- block.arity < 1 ? config.instance_eval(&block) : block.call(config)
16
- config.instance_eval(&block)
17
- return config
18
- end
19
-
20
- def remote(name, &block)
21
- @targets << Blazing::Target.new(name, @repository, &block)
22
- end
23
-
24
- def repository(url)
25
- @repository = url
26
- end
27
-
28
- def determine_target
29
- target = case
30
- when self.targets.size == 1 && !self.targets.first.location.nil?
31
- self.targets.first
32
-
33
- when !self.default.default_target.nil?
34
- self.targets.find { |t| t.name == self.default.default_target }
35
-
36
- when self.default && !self.default.hostname.nil?
37
- self.default
38
- end
39
-
40
- return target
41
- end
42
-
43
- def default
44
- self.targets.find { |t| t.name == :blazing}
45
- end
46
-
47
- # TODO: Why does thor break when this is put into an external file config folder?
48
- class Create < Thor::Group
49
-
50
- desc 'creates a blazing config file'
51
-
52
- include Thor::Actions
53
-
54
- argument :username
55
- argument :hostname
56
- argument :path
57
- argument :repository
58
-
59
- def self.source_root
60
- File.dirname(__FILE__)
61
- end
62
-
63
- def create_blazing_dir
64
- empty_directory 'config'
65
- end
66
-
67
- def create_config_file
68
- template('templates/blazing.tt', "config/blazing.rb")
69
- end
70
-
71
- end
72
-
73
- end
@@ -1,18 +0,0 @@
1
- require 'blazing/config'
2
-
3
- module Blazing::Config::Helper
4
-
5
- def self.find_target(target=nil)
6
- config = Blazing::Config.read do |blazing|
7
- blazing.instance_eval(File.read blazing.file)
8
- end
9
-
10
- # Check if remote can be found in config file
11
- if target
12
- target = config.targets.find { |t| t.name == target.to_sym }
13
- end
14
-
15
- target = target || config.determine_target
16
- end
17
-
18
- end
@@ -1,19 +0,0 @@
1
- #
2
- # Stuff that runs on remote machine
3
- #
4
- class Blazing::Remote
5
-
6
- def self.pre_receive(target_name)
7
- # really needed? probably only for maintenance page, maybe even this can be done post receive
8
- end
9
-
10
- def self.post_receive(target_name)
11
-
12
- target = Blazing::Config::Helper.find_target(target_name)
13
-
14
- `git reset --hard HEAD`
15
-
16
- `bundle update`
17
- end
18
-
19
- end
@@ -1,86 +0,0 @@
1
- class Blazing::Target
2
-
3
- attr_accessor :name, :user, :hostname, :path, :recipes, :target_name, :default_target, :repository
4
-
5
- def initialize(name, repository, &block)
6
- @name = name
7
- @repository = repository
8
- instance_eval &block
9
- end
10
-
11
- def deploy_to(location)
12
- @user = location.match('(.*)@')[1]
13
- @hostname = location.match('@(.*):')[1]
14
- @path = location.match(':(.*)')[1]
15
- end
16
-
17
- def location
18
- # TODO: build this together more carefully, checking for emtpy hostname etc...
19
- @location ||= "#{ @user }@#{ @hostname }:#{ @path }"
20
- end
21
-
22
- # Only used in global remote for setting default remote
23
- # TODO: extract into other class, inherit
24
- def set_default_target(target_name)
25
- @default_target = target_name
26
- end
27
-
28
- class Setup < Thor
29
-
30
- include Thor::Actions
31
-
32
- def self.source_root
33
- File.dirname(__FILE__)
34
- end
35
-
36
- argument :target
37
-
38
- desc 'setup:setup_repository TARGET', 'sets up a remote for blazing deployments'
39
- def setup_repository
40
-
41
- # TODO: Extract into helper
42
- # remote_with_condition()
43
-
44
- command = "if [ -e ~/sites/blazingoverride.ch/ ]; then echo 'repository has been cloned already'; else git clone #{ remote.repository } #{ remote.path } && git config receive.denyCurrentBranch ignore; fi"
45
- system "ssh #{ remote.user }@#{ remote.hostname } '#{ command }'"
46
- if $? == 0
47
- say '--> [ok]', :green
48
- invoke 'add_pre_receive_hook', remote
49
- else
50
- say '--> [FAILED]', :red
51
- say '[BLAZING] -- ROLLING BACK', :blue
52
- return
53
- end
54
- end
55
-
56
- desc 'setup:clone_repository TARGET', 'sets up a remote for blazing deployments'
57
- def add_pre_receive_hook
58
- say 'adding pre-receive hook'
59
- pre_hook = "deploy/pre-receive"
60
- template('templates/pre-hook.tt', pre_hook)
61
- system "chmod +x #{ pre_hook }"
62
- system "scp #{ pre_hook } #{ remote.user }@#{ remote.hostname }:#{ remote.path }/.git/hooks/"
63
- say '--> [ok]', :green
64
- invoke 'add_post_receive_hook', remote
65
- end
66
-
67
- desc 'setup:clone_repository TARGET', 'sets up a remote for blazing deployments'
68
- def add_post_receive_hook
69
- say 'adding post-receive hook'
70
- post_hook = "deploy/post-receive"
71
- template('templates/post-hook.tt', post_hook)
72
- system "chmod +x #{ post_hook }"
73
- system "scp #{ post_hook } #{ remote.user }@#{ remote.hostname }:#{ remote.path }/.git/hooks/"
74
- say '--> [ok]', :green
75
- invoke 'add_remote', remote
76
- end
77
-
78
- desc 'setup:add_remote TARGET', 'adds a git remote for the given remote'
79
- def add_remote
80
- say 'adding remote as remote to repository'
81
- system "git remote add #{ remote.name } #{ remote.user }@#{ remote.hostname }:#{ remote.path }"
82
- end
83
-
84
- end
85
-
86
- end
@@ -1,3 +0,0 @@
1
- module Blazing
2
- VERSION = "0.0.1"
3
- end