omf_rc 6.1.7 → 6.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/install_omf_rc +7 -6
  2. metadata +5 -5
data/bin/install_omf_rc CHANGED
@@ -49,24 +49,25 @@ if options[:init]
49
49
  abort "Unknown or unsupported operating system. Cannot install init script."
50
50
  end
51
51
  issue = File.read("/etc/issue")
52
- if issue.include? "Ubuntu"
52
+ case issue
53
+ when /Ubuntu/
53
54
  FileUtils.cp "#{gem_root}/init/ubuntu", "/etc/init/omf_rc.conf"
54
55
  puts "Upstart script for Ubuntu has been installed. Execute 'start omf_rc' to run the daemon."
55
- elsif issue.include? "Debian"
56
+ when /Debian/
56
57
  FileUtils.cp "#{gem_root}/init/debian", "/etc/init.d/omf_rc"
57
58
  `update-rc.d omf_rc defaults`
58
59
  puts "Init script for Debian has been installed. Execute '/etc/init.d/omf_rc start' to run the daemon."
59
- elsif issue.include? "Angstrom"
60
+ when /Angstrom/
60
61
  FileUtils.cp "#{gem_root}/init/angstrom", "/etc/init.d/omf_rc"
61
62
  `update-rc.d omf_rc defaults`
62
63
  puts "Init script for Angstrom has been installed. Execute '/etc/init.d/omf_rc start' to run the daemon."
63
- elsif issue.include? "Fedora"
64
+ when /Fedora|CentOS/
64
65
  FileUtils.cp "#{gem_root}/init/fedora", "/etc/init.d/omf_rc"
65
66
  `chkconfig --add omf_rc`
66
67
  # older Fedora's don't use systemd
67
68
  `systemctl --system daemon-reload` if File.exist?("/bin/systemctl")
68
69
  puts "Init script for Fedora has been installed. Execute '/etc/init.d/omf_rc start' to run the daemon."
69
70
  else
70
- abort "OS '#{os}' is not supported. Cannot install init script."
71
+ abort "OS '#{issue}' is not supported. Cannot install init script."
71
72
  end
72
- end
73
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_rc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.7
4
+ version: 6.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-09 00:00:00.000000000 Z
12
+ date: 2014-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -82,7 +82,7 @@ dependencies:
82
82
  requirements:
83
83
  - - '='
84
84
  - !ruby/object:Gem::Version
85
- version: 6.1.7
85
+ version: 6.1.8
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  requirements:
91
91
  - - '='
92
92
  - !ruby/object:Gem::Version
93
- version: 6.1.7
93
+ version: 6.1.8
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: cocaine
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  segments:
232
232
  - 0
233
- hash: 251578656278851928
233
+ hash: 4383836319419922406
234
234
  requirements: []
235
235
  rubyforge_project: omf_rc
236
236
  rubygems_version: 1.8.23