ssp 0.6.5 → 0.6.6

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.
@@ -25,21 +25,17 @@ 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,
29
- %w( node -N ) => "ginger.sspti.me"
28
+ %w( rollback -r ) => false, %w( force -f ) => false
30
29
  method_option :revision, :aliases => "-R",
31
30
  :desc => "Revision to deploy to. Previous relative release (1..4) or specific revision. In rollback mode (-r) this defaults to 1."
31
+ method_option :node, :aliases => "-N",
32
+ :desc => "Node to deploy on. Defaults to `ginger.sspti.me' for staging and `<APP>.sspti.me' for production."
32
33
  def deploy(app)
33
34
  if options[:ssh_user] == "root"
34
35
  raise Thor::Error, "You cannot deploy directly with the root user, use the -u option to specify your user"
35
36
  end
36
37
  chef_config
37
- node =
38
- if options[:production]
39
- "#{app}-app-01.sspti.me"
40
- else
41
- options[:node]
42
- end
38
+ node = options[:node] || (options[:production] ? "#{app}.sspti.me" : "ginger.sspti.me")
43
39
  debug_log = "/tmp/#{app}_deploy_chef_run.#{Time.now.strftime("%Y%m%d%H%M")}.log"
44
40
  command = "sudo chef-client -V -l debug -L #{debug_log} | grep --line-buffered '\\[[^]]*\\] [A-Z]*:' | grep -v DEBUG:"
45
41
 
@@ -1,3 +1,3 @@
1
1
  module SSP
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 5
9
- version: 0.6.5
8
+ - 6
9
+ version: 0.6.6
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: 2011-04-13 00:00:00 +02:00
17
+ date: 2011-04-14 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency