Sha256: c842ccbe15863cd4f7d90cdfd4377b787492eef8c4fdef18658f043e1438f3c0

Contents?: true

Size: 848 Bytes

Versions: 6

Compression:

Stored size: 848 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
caploy-2.0.0 lib/caploy/recipes/info.rb
caploy-1.0.4 lib/caploy/recipes/info.rb
caploy-1.0.3 lib/caploy/recipes/info.rb
caploy-1.0.2 lib/caploy/recipes/info.rb
caploy-1.0.1 lib/caploy/recipes/info.rb
caploy-1.0.0 lib/caploy/recipes/info.rb