Sha256: 08acd6f17b68a23bbb7d30f932e53d814ab27f8cd74b9f99352d9ea0a163c67d

Contents?: true

Size: 1005 Bytes

Versions: 4

Compression:

Stored size: 1005 Bytes

Contents

module Commands

  def Commands.rake(options)
    print_rake_help
  end

  private

  def Commands.print_rake_help
    puts <<-END.gsub(/^ {6}/, '')
      Use rake to drive p4util commands

      Example usage in your Rakefile:

          require 'p4util/tasks'

          P4Util::Tasks.new do |p4util|
            p4util.version = 'r14.2'
            p4util.p4_init_dir = 'spec/init.base'
          end

      This defines three tasks for you:

      * `p4init` - See 'p4util help init'
      * `p4kill` - See 'p4util help kill'
      * `p4reset` - Calls p4kill then removes the /tmp/p4util/p4droot folder

      (This assumes you have installed p4util or setup the p4util gem dependency.)

      The `version` property specifies the version of p4d to download and run.
      It mirrors the version directory names of ftp.perforce.com at the moment.

      The `p4_init_dir` property indicates a directory of ruby scripts that
      define the script files for the p4util init command.
    END
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
p4util-0.4.3 ./lib/commands/rake.rb
p4util-0.4.2 ./lib/commands/rake.rb
p4util-0.4.1 ./lib/commands/rake.rb
p4util-0.4 ./lib/commands/rake.rb