herkko 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/herkko/runner.rb +12 -6
- data/lib/herkko/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6bffd0a5abfe43a238f4a41f21edcbc397c27d6
|
4
|
+
data.tar.gz: 2fc94f2db7caa92d2838fc200edf128cd66f2156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c153b827a0ab4b2d9a42da2f8d4a388e36db6fe984595f36cbaf9fbf2a18bd1bb2c7a2b624088446538f53ac083c5b9b5ab5632c0ab05d79cdea7642241094f
|
7
|
+
data.tar.gz: f5735becaaea87e895bc77f88f3940380b1fcda8cf4ef04f6b35701326ab3641666b4072b413c9b1de87746ff5fbf2b5d2328b5cfb701b19c25c4bc7e9f1a058
|
data/lib/herkko/runner.rb
CHANGED
@@ -50,10 +50,11 @@ It's recommended to name your remotes for example production & staging. Then you
|
|
50
50
|
|
51
51
|
## Commands
|
52
52
|
|
53
|
-
console
|
54
|
-
deploy
|
55
|
-
seed
|
56
|
-
migrate
|
53
|
+
console | Opens Rails console
|
54
|
+
deploy | Deploys new version
|
55
|
+
seed | Runs seeds.rb
|
56
|
+
migrate | Run migrations and restarts the app
|
57
|
+
changelog | Prints the commits to be deployed
|
57
58
|
|
58
59
|
### deploy
|
59
60
|
|
@@ -62,6 +63,11 @@ migrate | Run migrations and restarts the app
|
|
62
63
|
END
|
63
64
|
end
|
64
65
|
|
66
|
+
def changelog
|
67
|
+
fetch_currently_deployed_version
|
68
|
+
puts git_changelog
|
69
|
+
end
|
70
|
+
|
65
71
|
def deploy
|
66
72
|
Herkko.info "Doing deployment to #{environment}..."
|
67
73
|
fetch_currently_deployed_version
|
@@ -69,7 +75,7 @@ END
|
|
69
75
|
Herkko.info("Deploying changes:")
|
70
76
|
|
71
77
|
puts
|
72
|
-
puts
|
78
|
+
puts git_changelog
|
73
79
|
puts
|
74
80
|
|
75
81
|
ci_state = if skip_ci_check?
|
@@ -174,7 +180,7 @@ END
|
|
174
180
|
Herkko.run_with_output("git", "fetch", environment)
|
175
181
|
end
|
176
182
|
|
177
|
-
def
|
183
|
+
def git_changelog
|
178
184
|
Herkko.run("git", "log", "--pretty='format:%C(yellow)%h %Cblue%ad%Creset %an %Cgreen%s%Creset'", "--date=short", "#{currently_deployed_to(environment)}..#{to_be_deployed_sha}")[0]
|
179
185
|
end
|
180
186
|
end
|
data/lib/herkko/version.rb
CHANGED