class Commands::Init::DepotModel

Attributes

address[RW]
depot[RW]
description[RW]
map[RW]
spec_map[RW]
suffix[RW]
type[RW]

Public Class Methods

abstract() click to toggle source
Internal implementation
# File lib/commands/init/depot_model.rb, line 31
def self.abstract
  true
end
new() click to toggle source
# File lib/commands/init/depot_model.rb, line 37
def initialize
  @depot = self.class.depot
  @description = self.class.description
  @type = self.class.type
  @address = self.class.address
  @suffix = self.class.suffix
  @map = self.class.map
  @spec_map = self.class.spec_map
end

Public Instance Methods

execute(p4, models=nil, super_user=nil) click to toggle source
# File lib/commands/init/depot_model.rb, line 47
def execute(p4, models=nil, super_user=nil)
  d = p4.fetch_depot(depot)
  d._depot = depot
  d._description = description if description
  d._type = type if type
  d._address = address if address
  d._suffix = suffix if suffix
  d._map = map if map
  d._spec_map = spec_map if spec_map
  p4.save_depot(d)
end