Sha256: a3f698c1cb459f24383c488f74a076ce5b850f5493375240367ce93f9811e079

Contents?: true

Size: 690 Bytes

Versions: 35

Compression:

Stored size: 690 Bytes

Contents

# ==========================================================================
# Generator: Controller
# Copyright: ©2006-2009 Sprout Systems, Inc. and contributors
#            portions copyright ©2009 Apple Inc.
# ==========================================================================

namespace :generator do

  # - Verify required properties are present
  # - Accept second argument as base class
  # - If file name ends in "_controller", strip it off
  task :prepare do
    GENERATOR.requires! :target_project, :target, :namespace, :class_name
    GENERATOR.base_class_name ||= GENERATOR.arguments[2]
    GENERATOR.filename = GENERATOR.filename.sub(/_controller$/,'')
  end
  
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 gen/controller/Buildfile
sproutcore-1.4.4-java lib/gen/controller/Buildfile
sproutcore-1.4.4 lib/gen/controller/Buildfile
sproutcore-1.4.3.1 lib/gen/controller/Buildfile
sproutcore-1.4.3-java lib/gen/controller/Buildfile
sproutcore-1.4.3 lib/gen/controller/Buildfile
sproutcore-1.4.2-java lib/gen/controller/Buildfile
sproutcore-1.4.2 lib/gen/controller/Buildfile
sproutcore-1.4.1-java lib/gen/controller/Buildfile
sproutcore-1.4.1 lib/gen/controller/Buildfile
sproutcore-1.4.0-java lib/gen/controller/Buildfile
sproutcore-1.4.0 lib/gen/controller/Buildfile
sproutcore-1.4.0.rc.5 lib/gen/controller/Buildfile
sproutcore-1.4.0.rc.4 lib/gen/controller/Buildfile
sproutcore-1.4.0.rc.3 lib/gen/controller/Buildfile
sproutcore-1.4.0.rc.2 lib/gen/controller/Buildfile
sproutcore-1.4.0.rc gen/controller/Buildfile
sproutcore-1.0.1049.pre.2 gen/controller/Buildfile
sproutcore-1.0.1049.pre.1 gen/controller/Buildfile
sproutcore-1.0.1046 gen/controller/Buildfile