shelly 0.4.7 → 0.4.8

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzFmYmZhM2Q2ZjBhZWVkNDY3ZmJkNzNlZTllYjVkNTVhNzU4ZWQ2Yg==
4
+ ZTI2ZGUyN2RmYTYxMDIzNWM0ZDA4ZGM3NmQzMTllODIxYjg1MTI3ZQ==
5
5
  data.tar.gz: !binary |-
6
- ZjNlZjI3YTI2OTEyNGNhNzVhYWFjM2ZmNzc5YjY4MTVmMjI0MTg3NA==
6
+ YjczNjAyZmQ0YmRjN2M2MzBhOTI4MDkxOTVkZTUxYTEzZmM5MTk3Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTJlNThiMDRhNDg2YzQ0Y2QxNDY2NjdjNmFlZTQ5MGI3Yjg2MGZjYzE5NTUz
10
- NTBmYjQyZTc2Yzg0YzIxMDMzZjU5NjY4ODE3MGRiNjE3NWU2ODhjZWVlNTg4
11
- YmZiODRjZWExOWYwYmMwNDlkNzMwOWVmMDQyZTI2OThiY2IzMjQ=
9
+ NGU2ZTZmNmQ2NTM2NmVkZjU0NTg3YzI4MTY3NzJjMjk4Njg0MGQzZDliN2E1
10
+ ZDYwYmI3YjUxNTE5N2YwNDc1ODVhMzgwOWJhN2E0OGZiNWUzNzU0OWE4MTcx
11
+ NThhYjc0YTYyMGVhZGJmM2NiNmZkZTA4OWJmYWY2YTgwZjQ3MzA=
12
12
  data.tar.gz: !binary |-
13
- YjNkYmI1ODQwNTVmN2I3ZjlmNDVhZTYzNWQyNTBiZWFmYWUxZjI1NTg4YWJk
14
- ZDQ5MjUxOTA2MTdkM2Q4MmI3ZGIwNGFmZmI4NTlmZjlmOTI4NTA4Mjc2NzJl
15
- YTU4MDlkNjUyN2JkMTUyOWE0MjcwZTNjZjZmMTQ2MmUzNWJhNmQ=
13
+ NGE0NTE2NDg1NmRkMGJhNjhlYWQwMmY2YzZhMzU2NGM0NzMyZmUzNjhkMTFh
14
+ Mjc4NTk4YWFiZDczMGI5NTNjMGYzN2Q0YWQ3Nzg0N2QxNzFlZTQyOTkzMTg4
15
+ OTRmYzE4MTYyMTgwMGQzN2VjMjcxZjc0N2EwMGI5YTcwYjU3NjA=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.8 / 2013-10-18
2
+
3
+ * [improvement] Deployment log callbacks split into separate entities
4
+
1
5
  ## 0.4.7 / 2013-10-18
2
6
 
3
7
  * [feature] Mange SSL certificate with `shelly cert`
@@ -41,7 +41,19 @@ module Shelly
41
41
  unless content.empty?
42
42
  say "Log for deploy done on #{content["created_at"]}", :green
43
43
  if content["bundle_install"]
44
- say("Starting bundle install", :green); say(content["bundle_install"])
44
+ say("Bundle install", :green); say(content["bundle_install"])
45
+ end
46
+ if content["before_migrate"]
47
+ say("Before migrate hook", :green); say(content["before_migrate"])
48
+ end
49
+ if content["db_migrate"]
50
+ say("Rake db:migrate", :green); say(content["db_migrate"])
51
+ end
52
+ if content["before_symlink"]
53
+ say("Before symlink hook", :green); say(content["before_symlink"])
54
+ end
55
+ if content["before_restart"]
56
+ say("Before restart hook", :green); say(content["before_restart"])
45
57
  end
46
58
  if content["delayed_job"]
47
59
  say("Starting delayed job", :green); say(content["delayed_job"])
@@ -55,11 +67,11 @@ module Shelly
55
67
  if content["puma_restart"]
56
68
  say("Starting puma", :green); say(content["puma_restart"])
57
69
  end
58
- if content["callbacks"]
59
- say("Starting callbacks", :green); say(content["callbacks"])
70
+ if content["after_restart"]
71
+ say("After restart hook", :green); say(content["after_restart"])
60
72
  end
61
73
  if content["whenever"]
62
- say("Starting whenever", :green); say(content["whenever"])
74
+ say("Whenever", :green); say(content["whenever"])
63
75
  end
64
76
  else
65
77
  say_error("There was an error and log is not available", :with_exit => false)
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
@@ -97,12 +97,16 @@ describe Shelly::CLI::Deploy do
97
97
 
98
98
  def expected_output
99
99
  $stdout.should_receive(:puts).with(green "Log for deploy done on 2011-12-12 at 14:14:59")
100
- $stdout.should_receive(:puts).with(green "Starting bundle install")
100
+ $stdout.should_receive(:puts).with(green "Bundle install")
101
101
  $stdout.should_receive(:puts).with("Installing gems")
102
- $stdout.should_receive(:puts).with(green "Starting whenever")
103
- $stdout.should_receive(:puts).with("Looking up schedule.rb")
104
- $stdout.should_receive(:puts).with(green "Starting callbacks")
102
+ $stdout.should_receive(:puts).with(green "Before migrate hook")
103
+ $stdout.should_receive(:puts).with("before migrate hook")
104
+ $stdout.should_receive(:puts).with(green "Rake db:migrate")
105
105
  $stdout.should_receive(:puts).with("rake db:migrate")
106
+ $stdout.should_receive(:puts).with(green "Before symlink hook")
107
+ $stdout.should_receive(:puts).with("before symlink hook")
108
+ $stdout.should_receive(:puts).with(green "Before restart hook")
109
+ $stdout.should_receive(:puts).with("before restart hook")
106
110
  $stdout.should_receive(:puts).with(green "Starting delayed job")
107
111
  $stdout.should_receive(:puts).with("delayed jobs")
108
112
  $stdout.should_receive(:puts).with(green "Starting sidekiq")
@@ -111,13 +115,22 @@ describe Shelly::CLI::Deploy do
111
115
  $stdout.should_receive(:puts).with("thins up and running")
112
116
  $stdout.should_receive(:puts).with(green "Starting puma")
113
117
  $stdout.should_receive(:puts).with("pumas up and running")
118
+ $stdout.should_receive(:puts).with(green "After restart hook")
119
+ $stdout.should_receive(:puts).with("after restart hook")
120
+ $stdout.should_receive(:puts).with(green "Whenever")
121
+ $stdout.should_receive(:puts).with("Looking up schedule.rb")
122
+
114
123
  end
115
124
 
116
125
  def response
117
- {"created_at" => "2011-12-12 at 14:14:59", "bundle_install" => "Installing gems",
126
+ {
127
+ "created_at" => "2011-12-12 at 14:14:59", "bundle_install" => "Installing gems",
118
128
  "whenever" => "Looking up schedule.rb", "thin_restart" => "thins up and running",
119
129
  "puma_restart" => "pumas up and running", "delayed_job" => "delayed jobs",
120
- "sidekiq" => "sidekiq workers", "callbacks" => "rake db:migrate"}
130
+ "sidekiq" => "sidekiq workers", "db_migrate" => "rake db:migrate",
131
+ "after_restart" => "after restart hook", "before_restart" => "before restart hook",
132
+ "before_symlink" => "before symlink hook", "before_migrate" => "before migrate hook"
133
+ }
121
134
  end
122
135
  end
123
136
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shelly Cloud team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-18 00:00:00.000000000 Z
11
+ date: 2013-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  type: :development