capistrano-webserver 0.1.2 → 0.1.4

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/Rakefile CHANGED
@@ -2,8 +2,9 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('capistrano-webserver', '0.1.2') do |p|
6
- p.description = "Common way to manage webserver configuration using capistrano"
5
+ Echoe.new('capistrano-webserver', '0.1.4') do |p|
6
+ p.description = "Common way to manage webserver (apache) configuration using capistrano"
7
+ p.summary = "Common way to manage webserver configuration using capistrano. Only apache is currently supported."
7
8
  p.url = "http://github.com/dashonet/capistrano-webserver"
8
9
  p.author = "Shawn Catanzarite"
9
10
  p.email = "shawn@dasho.net"
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{capistrano-webserver}
5
- s.version = "0.1.2"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Shawn Catanzarite"]
9
- s.date = %q{2011-05-02}
10
- s.description = %q{Common way to manage webserver configuration using capistrano}
9
+ s.date = %q{2011-05-17}
10
+ s.description = %q{Common way to manage webserver (apache) configuration using capistrano}
11
11
  s.email = %q{shawn@dasho.net}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/webserver/apache.rb"]
13
13
  s.files = ["README.rdoc", "Rakefile", "capistrano-webserver.gemspec", "lib/webserver/apache.rb", "Manifest"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{capistrano-webserver}
18
18
  s.rubygems_version = %q{1.6.2}
19
- s.summary = %q{Common way to manage webserver configuration using capistrano}
19
+ s.summary = %q{Common way to manage webserver configuration using capistrano. Only apache is currently supported.}
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  s.specification_version = 3
@@ -37,13 +37,13 @@ Capistrano::Configuration.instance(true).load do
37
37
  upload "#{webserver_config}", "#{shared_path}/webserver/#{application}"
38
38
 
39
39
  # remove the old file / link
40
- run "#{try_sudo} rm -f #{webserver_dir}/#{application}"
40
+ run "sudo rm -f #{webserver_dir}/#{application}"
41
41
 
42
42
  # link or copy file from shared to webserver directory
43
43
  if webserver_link == true
44
- run "#{try_sudo} ln -sf #{shared_path}/webserver/#{application} #{webserver_dir}/#{application}"
44
+ run "sudo ln -sf #{shared_path}/webserver/#{application} #{webserver_dir}/#{application}"
45
45
  else
46
- run "#{try_sudo} cp #{shared_path}/webserver/#{application} #{webserver_dir}/#{application}"
46
+ run "sudo cp #{shared_path}/webserver/#{application} #{webserver_dir}/#{application}"
47
47
  end
48
48
 
49
49
  # restart the webserver
@@ -54,18 +54,18 @@ Capistrano::Configuration.instance(true).load do
54
54
 
55
55
  desc "start webserver (apache)"
56
56
  task :start, :roles => :web do
57
- run "#{try_sudo} #{webserver_init} start"
57
+ run "sudo #{webserver_init} start"
58
58
  end
59
59
 
60
60
  desc "stop webserver (apache)"
61
61
  task :stop, :roles => :web do
62
- run "#{try_sudo} #{webserver_init} stop"
62
+ run "sudo #{webserver_init} stop"
63
63
  end
64
64
 
65
65
  desc "restart webserver (apache)"
66
66
  task :restart, :roles => :web do
67
- run "#{try_sudo} #{webserver_init} restart"
67
+ run "sudo #{webserver_init} restart"
68
68
  end
69
69
 
70
70
  end
71
- end
71
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-webserver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shawn Catanzarite
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-02 00:00:00 -07:00
18
+ date: 2011-05-17 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: "0"
33
33
  type: :development
34
34
  version_requirements: *id001
35
- description: Common way to manage webserver configuration using capistrano
35
+ description: Common way to manage webserver (apache) configuration using capistrano
36
36
  email: shawn@dasho.net
37
37
  executables: []
38
38
 
@@ -86,6 +86,6 @@ rubyforge_project: capistrano-webserver
86
86
  rubygems_version: 1.6.2
87
87
  signing_key:
88
88
  specification_version: 3
89
- summary: Common way to manage webserver configuration using capistrano
89
+ summary: Common way to manage webserver configuration using capistrano. Only apache is currently supported.
90
90
  test_files: []
91
91