bard 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bard.gemspec +1 -1
- data/lib/bard.rb +2 -0
- data/lib/bard/template/initial.rb +5 -5
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.8.
|
|
1
|
+
0.8.4
|
data/bard.gemspec
CHANGED
data/lib/bard.rb
CHANGED
|
@@ -24,6 +24,7 @@ class Bard < Thor
|
|
|
24
24
|
|
|
25
25
|
desc "create [PROJECT_NAME]", "create new project"
|
|
26
26
|
def create(project_name)
|
|
27
|
+
check_dependencies
|
|
27
28
|
template_path = File.expand_path(File.dirname(__FILE__) + "/bard/template.rb")
|
|
28
29
|
command = "rails --template=#{template_path} #{project_name}"
|
|
29
30
|
exec command
|
|
@@ -38,6 +39,7 @@ class Bard < Thor
|
|
|
38
39
|
|
|
39
40
|
desc "data", "copy production database down to your local machine"
|
|
40
41
|
def data
|
|
42
|
+
check_dependencies
|
|
41
43
|
exec "cap data:pull"
|
|
42
44
|
end
|
|
43
45
|
|
|
@@ -178,16 +178,11 @@ doc/spec/*
|
|
|
178
178
|
db/data.*
|
|
179
179
|
db/*.sqlite3
|
|
180
180
|
config/database.yml
|
|
181
|
-
config/deploy.rb
|
|
182
181
|
converage/**/*
|
|
183
182
|
public/stylesheets/*.css
|
|
184
183
|
*[~]
|
|
185
184
|
END
|
|
186
185
|
|
|
187
|
-
git :init
|
|
188
|
-
git :add => "."
|
|
189
|
-
git :commit => "-m'initial commit.'"
|
|
190
|
-
|
|
191
186
|
# Deployment and staging setup
|
|
192
187
|
file "Capfile", <<-END
|
|
193
188
|
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
|
|
@@ -199,5 +194,10 @@ file "config/deploy.rb", <<-END
|
|
|
199
194
|
set :application, "#{project_name}"
|
|
200
195
|
END
|
|
201
196
|
|
|
197
|
+
git :init
|
|
198
|
+
git :add => "."
|
|
199
|
+
git :commit => "-m'initial commit.'"
|
|
200
|
+
git :checkout => "-b integration"
|
|
201
|
+
|
|
202
202
|
git :remote => "add origin git@git.botandrose.com:#{project_name}.git"
|
|
203
203
|
run "cap staging:bootstrap"
|