bard 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bard.gemspec +1 -1
- data/features/step_definitions/global_steps.rb +2 -2
- data/lib/bard.rb +7 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.8
|
data/bard.gemspec
CHANGED
@@ -16,7 +16,7 @@ RAILS_ENV=staging #{ROOT}/bin/bard stage $@
|
|
16
16
|
BASH
|
17
17
|
f.chmod 0775
|
18
18
|
end
|
19
|
-
type "cp config/database.yml
|
19
|
+
type "cp config/database.sample.yml config/database.yml"
|
20
20
|
type "git checkout -b integration"
|
21
21
|
end
|
22
22
|
type "cp -R fixtures/repo tmp/submodule"
|
@@ -26,7 +26,7 @@ BASH
|
|
26
26
|
@repo = Grit::Repo.new "."
|
27
27
|
type "grb fetch integration"
|
28
28
|
type "git checkout integration"
|
29
|
-
type "cp config/database.yml
|
29
|
+
type "cp config/database.sample.yml config/database.yml"
|
30
30
|
end
|
31
31
|
|
32
32
|
When /^I type "([^\"]*)"$/ do |command|
|
data/lib/bard.rb
CHANGED
@@ -160,12 +160,12 @@ class Bard < Thor
|
|
160
160
|
|
161
161
|
if ENV['RAILS_ENV'] == "staging"
|
162
162
|
if not File.exist? ".git/hooks/post-receive"
|
163
|
-
errors << "missing git hook"
|
163
|
+
errors << "missing git hook, please complain to micah"
|
164
164
|
else
|
165
|
-
errors << "unexecutable git hook" unless File.executable? ".git/hooks/post-receive"
|
166
|
-
errors << "improper git hook" unless File.read(".git/hooks/post-receive").include? "bard stage $@"
|
165
|
+
errors << "unexecutable git hook, please complain to micah" unless File.executable? ".git/hooks/post-receive"
|
166
|
+
errors << "improper git hook, please complain to micah" unless File.read(".git/hooks/post-receive").include? "bard stage $@"
|
167
167
|
end
|
168
|
-
errors << "the git config variable receive.denyCurrentBranch is not set to ignore" if `git config receive.denyCurrentBranch`.chomp != "ignore"
|
168
|
+
errors << "the git config variable receive.denyCurrentBranch is not set to ignore, please complain to micah" if `git config receive.denyCurrentBranch`.chomp != "ignore"
|
169
169
|
end
|
170
170
|
|
171
171
|
warnings << "RAILS_ENV is not set, please complain to micah" if ENV['RAILS_ENV'].nil? or ENV['RAILS_ENV'].empty?
|
@@ -177,6 +177,9 @@ class Bard < Thor
|
|
177
177
|
warn "#{warnings.length} potential problems detected:\n #{warnings.join("\n ")}"
|
178
178
|
else
|
179
179
|
puts green("No problems detected in project: #{project}")
|
180
|
+
if ENV['RAILS_ENV'] != "staging"
|
181
|
+
puts "please run it on the staging server by typing `cap shell` and then `bard check [PROJECT_NAME]`"
|
182
|
+
end
|
180
183
|
end
|
181
184
|
end
|
182
185
|
end
|