Sha256: f712a5136360df692c83a8840e05eb34dd10602ba7cc653ddebc2280d172a2bb

Contents?: true

Size: 819 Bytes

Versions: 35

Compression:

Stored size: 819 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 end in "_design" strip it off.
  # - Make sure filename ends in _page.
  task :prepare do
    GENERATOR.requires! :target_project, :target, :namespace, :class_name
    GENERATOR.base_class_name ||= GENERATOR.arguments[2]
    
    filename = GENERATOR.filename.sub(/_design$/,'')
    filename = "#{filename}_page" unless filename =~ /_page$/
    GENERATOR.filename = filename
      
  end
  
end

Version data entries

35 entries across 35 versions & 2 rubygems

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