plur 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ba75a18a139f24af74eef957214ee607f774374c
4
+ data.tar.gz: 339fa96c7be54ad3c396b8426b58c4d939505e0d
5
+ SHA512:
6
+ metadata.gz: 9394bff83dbbe6a3661d160984d10dc30a701cb149cfb5b291c0a727a34b5c797e2a985ec742f5d7966c237eab9d341b51e35a69999275fa922069f0dca89627
7
+ data.tar.gz: cf7525d61eb17a0ccd852e9e9190a5cb68ff3e932182ba1afc938ee89ec0316c1bb24ea6b38b9cf4207d7a12048437b0e85d881b59cc3878b8a0e75941130a65
@@ -18,7 +18,7 @@ Capistrano::Configuration.instance(:must_exist).load do
18
18
  task :export, roles: :app do
19
19
  bundle_cmd = fetch(:bundle_cmd, "bundle")
20
20
  foreman_format = fetch(:foreman_format, "upstart")
21
- foreman_location = fetch(:foreman_location, "/etc/init")
21
+ foreman_location = fetch(:foreman_location, "/etc/init/app")
22
22
  foreman_procfile = fetch(:foreman_procfile, "Procfile")
23
23
  foreman_port = fetch(:foreman_port, 5000)
24
24
  foreman_root = fetch(:foreman_root, current_path)
@@ -35,7 +35,7 @@ Capistrano::Configuration.instance(:must_exist).load do
35
35
  args << "-u #{foreman_user}"
36
36
  args << "-l #{foreman_log}"
37
37
  args << "-c #{foreman_concurrency}" if foreman_concurrency
38
- run "cd #{release_path} && #{sudo} #{bundle_cmd} exec foreman export #{args.join(' ')}"
38
+ run "cd #{release_path} && #{bundle_cmd} exec foreman export #{args.join(' ')}"
39
39
  end
40
40
  end
41
41
 
@@ -1,18 +1,20 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
2
  namespace :upstart do
3
+ _cset(:service_name) { "app/#{application}" }
4
+
3
5
  desc "Start the application services"
4
6
  task :start, roles: :app do
5
- run "#{sudo} service #{application} start"
7
+ run "#{sudo} service #{service_name} start"
6
8
  end
7
9
 
8
10
  desc "Stop the application services"
9
11
  task :stop, roles: :app do
10
- run "#{sudo} service #{application} stop"
12
+ run "#{sudo} service #{service_name} stop"
11
13
  end
12
14
 
13
15
  desc "Restart the application services"
14
16
  task :restart, roles: :app do
15
- run "#{sudo} service #{application} start || #{sudo} service #{application} restart"
17
+ run "#{sudo} service #{service_name} start || #{sudo} service #{service_name} restart"
16
18
  end
17
19
  end
18
20
 
data/lib/plur/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plur
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Alif Rachmawadi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-03 00:00:00.000000000 Z
11
+ date: 2013-02-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mab
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -51,26 +48,25 @@ files:
51
48
  - plur.gemspec
52
49
  homepage: https://github.com/subosito/plur
53
50
  licenses: []
51
+ metadata: {}
54
52
  post_install_message:
55
53
  rdoc_options: []
56
54
  require_paths:
57
55
  - lib
58
56
  required_ruby_version: !ruby/object:Gem::Requirement
59
- none: false
60
57
  requirements:
61
- - - ! '>='
58
+ - - '>='
62
59
  - !ruby/object:Gem::Version
63
60
  version: '0'
64
61
  required_rubygems_version: !ruby/object:Gem::Requirement
65
- none: false
66
62
  requirements:
67
- - - ! '>='
63
+ - - '>='
68
64
  - !ruby/object:Gem::Version
69
65
  version: '0'
70
66
  requirements: []
71
67
  rubyforge_project:
72
- rubygems_version: 1.8.23
68
+ rubygems_version: 2.0.0
73
69
  signing_key:
74
- specification_version: 3
70
+ specification_version: 4
75
71
  summary: Quite useful things
76
72
  test_files: []