Sha256: e88e317f4d4aedf5ed0fff4ba368b02b0b33e8732afde155045181df98a3699b

Contents?: true

Size: 1.76 KB

Versions: 24

Compression:

Stored size: 1.76 KB

Contents

Capistrano::Configuration.instance(true).load do
namespace :atiiscmd do
    
    desc "recycleApplicationPool"
    task :recycleApplicationPool, :max_hosts=>1 do
        run %{
            cscript //Nologo "C:\\windows\\system32\\iisapp.vbs" /a #{iispool} /r
        }
    end

    desc "iis website status"
    task :iis_site_status, :max_hosts=>1 do
        run %{
            cscript //Nologo "C:\\windows\\system32\\iisweb.vbs" /query #{iiswebsite} 
        }
    end

    desc "iis website status all"
    task :iis_site_status_all, :max_hosts=>1 do
        run %{
            cscript //Nologo "C:\\windows\\system32\\iisweb.vbs" /query 
        }
    end

    desc "iis website start"
    task :iis_site_start, :max_hosts=>1 do
        run %{
            cscript //Nologo "C:\\windows\\system32\\iisweb.vbs" /start #{iiswebsite} 
        }
    end

    desc "iis website stop"
    task :iis_site_stop, :max_hosts=>1 do
        run %{
            cscript //Nologo "C:\\windows\\system32\\iisweb.vbs" /stop #{iiswebsite} 
        }
    end

    desc "iis iisreset stop"
    task :iis_stop, :max_hosts=>1 do
        run %{
            iisreset /stop
        }
    end

    desc "iis iisreset start"
    task :iis_start, :max_hosts=>1 do
        run %{
            iisreset /start
        }
    end

    desc "iis iisreset status"
    task :iis_status, :max_hosts=>1 do
        run %{
            iisreset /status
        }
    end

    desc "iis iisreset restart"
    task :iis_restart, :max_hosts=>1 do
        run %{
            iisreset /restart
        }
    end

    desc "iis website deploy dir"
    task :iis_dp_dir_info, :max_hosts=>1 do
        run " grep -nE 'ServerComment|Path' /cygdrive/c/WINDOWS/system32/inetsrv/MetaBase.xml  |grep -vE 'tPath|rPath|默认|允许' "
    end
end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
uhl-cap-recipes-0.2.11 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.2.10 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.10 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.9 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.8 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.7 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.6 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.5 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.4 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.3 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.2 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.1 lib/cap_recipes/tasks/sdpdeploy/iis.rb
uhl-cap-recipes-0.1.0 lib/cap_recipes/tasks/sdpdeploy/iis.rb
crazycode-cap-recipes-0.5.3 lib/cap_recipes/tasks/sdpdeploy/iis.rb
crazycode-cap-recipes-0.5.2 lib/cap_recipes/tasks/sdpdeploy/iis.rb
crazycode-cap-recipes-0.5.1 lib/cap_recipes/tasks/sdpdeploy/iis.rb
crazycode-cap-recipes-0.5.0 lib/cap_recipes/tasks/sdpdeploy/iis.rb
crazycode-cap-recipes-0.4.14 lib/cap_recipes/tasks/sdpdeploy/iis.rb
crazycode-cap-recipes-0.4.13 lib/cap_recipes/tasks/sdpdeploy/iis.rb
crazycode-cap-recipes-0.4.12 lib/cap_recipes/tasks/sdpdeploy/iis.rb