ssp 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/lib/ssp/application/chef.rb +8 -2
- data/lib/ssp/version.rb +1 -1
- metadata +3 -3
data/lib/ssp/application/chef.rb
CHANGED
@@ -25,7 +25,8 @@ class SSP::App::Chef < Thor
|
|
25
25
|
|
26
26
|
desc "deploy APP", "Runs chef-client with deployment enabled for the application on the right node"
|
27
27
|
method_options %w( production -P ) => false, %w( migrate -m ) => true,
|
28
|
-
%w( rollback -r) => false, %w( force -f ) => false
|
28
|
+
%w( rollback -r ) => false, %w( force -f ) => false,
|
29
|
+
%w( node -N ) => "ginger.sspti.me"
|
29
30
|
method_option :revision, :aliases => "-R",
|
30
31
|
:desc => "Revision to deploy to. Previous relative release (1..4) or specific revision. In rollback mode (-r) this defaults to 1."
|
31
32
|
def deploy(app)
|
@@ -33,7 +34,12 @@ class SSP::App::Chef < Thor
|
|
33
34
|
raise Thor::Error, "You cannot deploy directly with the root user, use the -u option to specify your user"
|
34
35
|
end
|
35
36
|
chef_config
|
36
|
-
node =
|
37
|
+
node =
|
38
|
+
if options[:production]
|
39
|
+
"#{app}-app-01.sspti.me"
|
40
|
+
else
|
41
|
+
options[:node]
|
42
|
+
end
|
37
43
|
debug_log = "/tmp/#{app}_deploy_chef_run.#{Time.now.strftime("%Y%m%d%H%M")}.log"
|
38
44
|
command = "sudo chef-client -V -l debug -L #{debug_log} | grep --line-buffered '\\[[^]]*\\] [A-Z]*:' | grep -v DEBUG:"
|
39
45
|
|
data/lib/ssp/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 5
|
9
|
+
version: 0.6.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "L\xC3\xA1szl\xC3\xB3 B\xC3\xA1csi"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-04-13 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|