capistrano-node-deploy 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 1.2.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-node-deploy"
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Smith"]
@@ -23,16 +23,16 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
23
23
 
24
24
  package_json = MultiJson.load(File.open("package.json").read) rescue {}
25
25
 
26
- _cset :application, package_json["name"]
27
- _cset :app_command, package_json["main"] || "index.js"
28
- _cset :app_environment, ""
26
+ set :application, package_json["name"] unless defined? application
27
+ set :app_command, package_json["main"] || "index.js" unless defined? app_command
28
+ set :app_environment, "" unless defined? app_environment
29
29
 
30
- _cset :node_binary, "/usr/bin/node"
31
- _cset :node_env, "production"
32
- _cset :node_user, "deploy"
30
+ set :node_binary, "/usr/bin/node" unless defined? node_binary
31
+ set :node_env, "production" unless defined? node_env
32
+ set :node_user, "deploy" unless defined? node_user
33
33
 
34
- _cset(:upstart_job_name) { "#{application}-#{node_env}" }
35
- _cset(:upstart_file_path) { "/etc/init/#{upstart_job_name}.conf" }
34
+ set :upstart_job_name, lambda { "#{application}-#{node_env}" } unless defined? upstart_job_name
35
+ set :upstart_file_path, lambda { "/etc/init/#{upstart_job_name}.conf" } unless defined? upstart_file_path
36
36
  _cset(:upstart_file_contents) {
37
37
  <<EOD
38
38
  #!upstart
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-node-deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 3
10
- version: 1.2.3
9
+ - 4
10
+ version: 1.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Smith