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
caploy-0.2.5 lib/caploy/recipes/info.rb
caploy-0.2.4 lib/caploy/recipes/info.rb
caploy-0.2.3 lib/caploy/recipes/info.rb
caploy-0.2.2 lib/caploy/recipes/info.rb
caploy-0.2.1 lib/caploy/recipes/info.rb
caploy-0.2.0 lib/caploy/recipes/info.rb
caploy-0.1.12 lib/caploy/recipes/info.rb
caploy-0.1.11 lib/caploy/recipes/info.rb
caploy-0.1.10 lib/caploy/recipes/info.rb
caploy-0.1.9 lib/caploy/recipes/info.rb
caploy-0.1.8 lib/caploy/recipes/info.rb
caploy-0.1.7 lib/caploy/recipes/info.rb
caploy-0.1.6 lib/caploy/recipes/info.rb
caploy-0.1.5 lib/caploy/recipes/info.rb
caploy-0.1.4 lib/caploy/recipes/info.rb
caploy-0.1.3 lib/caploy/recipes/info.rb
caploy-0.1.2 lib/caploy/recipes/info.rb
caploy-0.1.1 lib/caploy/recipes/info.rb
caploy-0.1.0 lib/caploy/recipes/info.rb
ms_deploy-0.3.6 lib/ms_deploy/recipes/info.rb