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 +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/shelly/cli/deploy.rb +16 -4
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/deploy_spec.rb +19 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTI2ZGUyN2RmYTYxMDIzNWM0ZDA4ZGM3NmQzMTllODIxYjg1MTI3ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjczNjAyZmQ0YmRjN2M2MzBhOTI4MDkxOTVkZTUxYTEzZmM5MTk3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGU2ZTZmNmQ2NTM2NmVkZjU0NTg3YzI4MTY3NzJjMjk4Njg0MGQzZDliN2E1
|
10
|
+
ZDYwYmI3YjUxNTE5N2YwNDc1ODVhMzgwOWJhN2E0OGZiNWUzNzU0OWE4MTcx
|
11
|
+
NThhYjc0YTYyMGVhZGJmM2NiNmZkZTA4OWJmYWY2YTgwZjQ3MzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGE0NTE2NDg1NmRkMGJhNjhlYWQwMmY2YzZhMzU2NGM0NzMyZmUzNjhkMTFh
|
14
|
+
Mjc4NTk4YWFiZDczMGI5NTNjMGYzN2Q0YWQ3Nzg0N2QxNzFlZTQyOTkzMTg4
|
15
|
+
OTRmYzE4MTYyMTgwMGQzN2VjMjcxZjc0N2EwMGI5YTcwYjU3NjA=
|
data/CHANGELOG.md
CHANGED
data/lib/shelly/cli/deploy.rb
CHANGED
@@ -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("
|
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["
|
59
|
-
say("
|
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("
|
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)
|
data/lib/shelly/version.rb
CHANGED
@@ -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 "
|
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 "
|
103
|
-
$stdout.should_receive(:puts).with("
|
104
|
-
$stdout.should_receive(:puts).with(green "
|
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
|
-
{
|
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", "
|
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.
|
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-
|
11
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
type: :development
|