Sha256: 2b7397569640de1c31b3f4139d4e3b0fd7ccd505f867e9bde71696a01e52d24a

Contents?: true

Size: 951 Bytes

Versions: 50

Compression:

Stored size: 951 Bytes

Contents

Capistrano::Configuration.instance.load do

  namespace :info do
    desc <<-DESC
      Tail all or a single remote file

      The logfile can be specified with a LOGFILE-environment variable.
      It defaults to RAILS_ENV.log
    DESC
    task :tail, :roles => :app do
      ENV["LOGFILE"] ||= "#{rails_env}.log"
      begin
        stream "tail -f #{shared_path}/log/#{ENV["LOGFILE"]}"
      rescue Interrupt
        puts "\n--interrupted by user--"
        puts ""
      end
    end

    desc "Display the currently deployed Application, Revision and Release"
    task :version, :roles => :app, :except => { :no_release => true } do
      rev = current_revision
      rel = current_release.split('/').pop

      puts ""
      puts "    AppName: #{fetch(:application)}"
      puts "    Version: #{rev}"
      puts "    Release: #{rel}"
      puts ""
    end

    desc "Display the uname"
    task :uname do
      run "uname -a"
    end
  end

end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
ms_deploy-0.1.1 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.11 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.10 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.7 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.6 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.5 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.4 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.3 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.2 lib/ms_deploy/recipes/info.rb
ms_deploy-0.0.1 lib/ms_deploy/recipes/info.rb