Sha256: 19868f729e7b9e55722e8b64d201e0936cb71ad3f804dee8c8e57972e3ca6b23

Contents?: true

Size: 295 Bytes

Versions: 56

Compression:

Stored size: 295 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :apache do
    [:stop, :start, :restart, :reload].each do |action|
      desc "#{action.to_s.capitalize} Apache"
      task action, :roles => :web do
        sudo "/etc/init.d/apache2 #{action.to_s}"
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 6 rubygems

Version Path
eycap-0.6.9 lib/eycap/recipes/apache.rb
eycap-0.6.8 lib/eycap/recipes/apache.rb
eycap-0.6.7 lib/eycap/recipes/apache.rb
eycap-0.6.6 lib/eycap/recipes/apache.rb
eycap-0.6.5 lib/eycap/recipes/apache.rb
eycap-0.6.4 lib/eycap/recipes/apache.rb
eycap-0.6.3 lib/eycap/recipes/apache.rb
eycap-0.6.2 lib/eycap/recipes/apache.rb
eycap-0.6.1 lib/eycap/recipes/apache.rb
eycap-0.6.0 lib/eycap/recipes/apache.rb
eycap-0.5.23 lib/eycap/recipes/apache.rb
eycap-0.5.22 lib/eycap/recipes/apache.rb
eycap-0.5.21 lib/eycap/recipes/apache.rb
eycap-0.5.20 lib/eycap/recipes/apache.rb
eycap-0.5.19 lib/eycap/recipes/apache.rb
eycap-0.5.18 lib/eycap/recipes/apache.rb
eycap-0.5.17 lib/eycap/recipes/apache.rb
eycap-0.5.16 lib/eycap/recipes/apache.rb
eycap-0.5.15 lib/eycap/recipes/apache.rb
eycap-0.5.14 lib/eycap/recipes/apache.rb