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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ae9d28b6fbc1fcb10c2651b3a1f821e759ce4f4
4
- data.tar.gz: 53ae7c2f583b4e6dec091c75e7096cd354d53dc8
3
+ metadata.gz: e6bffd0a5abfe43a238f4a41f21edcbc397c27d6
4
+ data.tar.gz: 2fc94f2db7caa92d2838fc200edf128cd66f2156
5
5
  SHA512:
6
- metadata.gz: 6891be34fdf51e7e1baa3c5a2b781150fa644916a3f198822d68da58b72a39d0e1b35c7da0a7568d058079f445493308f3ee81fc552a7c5a45cf233b26c82886
7
- data.tar.gz: f8a08fed3ffe03f889521727afad5943cff62d544164c9f2b23f1cba9cf29ccf74d39e5b9eb69e96ead9351677351565919530f334db0656f6857b93fb4684ff
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 | Opens Rails console
54
- deploy | Deploys new version
55
- seed | Runs seeds.rb
56
- migrate | Run migrations and restarts the app
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 changelog
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 changelog
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
@@ -1,3 +1,3 @@
1
1
  module Herkko
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herkko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vesa Vänskä