Sha256: acdb067677996854ff0dfefc6254e7d00529754b822e5401447ae4a2a314642d

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

namespace :cake do
  desc "Execute a provided cake command"
  task :console, :command_name do |t, args|
    # ask only runs if argument is not provided
    ask(:cmd, "list")
    command = args[:command_name] || fetch(:cmd)

    on roles fetch(:cake_roles) do
      within release_path do
        execute :php, :console, command, *args.extras, fetch(:cake_console_flags)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-cake-0.0.1 lib/capistrano/tasks/console.rake