bard 0.6.4 → 0.6.5
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 +5 -5
- data/lib/bard/io.rb +4 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.5
|
data/bard.gemspec
CHANGED
data/lib/bard.rb
CHANGED
@@ -99,6 +99,8 @@ class Bard < Thor
|
|
99
99
|
run_crucial "git merge integration"
|
100
100
|
run_crucial "git push origin master"
|
101
101
|
run_crucial "git checkout integration"
|
102
|
+
|
103
|
+
run_crucial "cap ROLES=staging COMMAND='cd #{project_name} && cap deploy' invoke"
|
102
104
|
end
|
103
105
|
|
104
106
|
if ENV['RAILS_ENV'] == "staging"
|
@@ -114,8 +116,6 @@ class Bard < Thor
|
|
114
116
|
ENV['GIT_DIR'] = '.git'
|
115
117
|
end
|
116
118
|
|
117
|
-
run_crucial "git reset --hard"
|
118
|
-
|
119
119
|
# find out the current branch
|
120
120
|
head = File.read('.git/HEAD').chomp
|
121
121
|
# abort if we're on a detached head
|
@@ -123,9 +123,9 @@ class Bard < Thor
|
|
123
123
|
revs = gets.split ' '
|
124
124
|
old_rev, new_rev, branch = revs
|
125
125
|
|
126
|
-
if
|
127
|
-
run_crucial "
|
128
|
-
|
126
|
+
if head == branch
|
127
|
+
run_crucial "git reset --hard"
|
128
|
+
|
129
129
|
changed_files = run_crucial("git diff #{old_rev} #{new_rev} --diff-filter=ACMRD --name-only").split("\n")
|
130
130
|
|
131
131
|
if changed_files.any? { |f| f =~ %r(^db/migrate/.+) }
|
data/lib/bard/io.rb
CHANGED