Sha256: ec97a2321f5e111735573c585eb8e66a8e349060f6aa20658ddd09d0f0bfae8e

Contents?: true

Size: 918 Bytes

Versions: 13

Compression:

Stored size: 918 Bytes

Contents

class Changelist1 < ChangelistModel
  def rank; 1000 end
  @description = 'A couple of new files'
  @adds = [
      FileDefinition.new(:path => 'depot/README.txt',
        :content => <<-END.gsub(/^ {8}/, '')
          This is an example readme.
        END
      ),
      FileDefinition.new(:path => 'depot/dev/memorabilia/kitty.jpg',
        :local_path => 'p4init/287.jpg'
      )
  ]
end

class Changelist2 < ChangelistModel
  def rank; 1001 end
  @description = 'An example add and edit'
  @user = 'jdoe'
  @edits = [
      FileDefinition.new(:path => 'depot/README.txt',
                     :content => <<-END.gsub(/^ {8}/, '')
          This is an example readme.
          Added a second line
      END
      )
  ]
  @adds = [
      FileDefinition.new(:path => 'depot/main/project2/example.txt',
                     :content => <<-END.gsub(/^ {8}/, '')
          Example text file.
      END
      )
  ]
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
p4util-0.4.3 ./p4init/test_changelists.rb
p4util-0.4.2 ./p4init/test_changelists.rb
p4util-0.4.1 ./p4init/test_changelists.rb
p4util-0.4 ./p4init/test_changelists.rb
p4util-0.3.1 ./p4init/test_changelists.rb
p4util-0.3.0 ./p4init/test_changelists.rb
p4util-0.2 ./p4init/test_changelists.rb
p4util-0.1.6 ./p4init/test_changelists.rb
p4util-0.1.5 ./p4init/test_changelists.rb
p4util-0.1.4 ./p4init/test_changelists.rb
p4util-0.1.3 ./p4init/test_changelists.rb
p4util-0.1.1 ./p4init/test_changelists.rb
p4util-0.1.0 ./p4init/test_changelists.rb