Sha256: 6b4317a036ecda85a67f1e264bad60fca8eec5c95176035ad218912f7beea493

Contents?: true

Size: 691 Bytes

Versions: 13

Compression:

Stored size: 691 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

13 entries across 13 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090407205609 gen/controller/Buildfile
sproutit-sproutcore-1.0.0.20090408130025 gen/controller/Buildfile
sproutit-sproutcore-1.0.0.20090416161445 gen/controller/Buildfile
sproutit-sproutcore-1.0.0.20090720093355 gen/controller/Buildfile
sproutit-sproutcore-1.0.0.20090720202429 gen/controller/Buildfile
sproutit-sproutcore-1.0.0.20090721125122 gen/controller/Buildfile
sproutit-sproutcore-1.0.126 gen/controller/Buildfile
sproutit-sproutcore-1.0.20090721145236 gen/controller/Buildfile
sproutit-sproutcore-1.0.20090721145251 gen/controller/Buildfile
sproutit-sproutcore-1.0.20090721145280 gen/controller/Buildfile
sproutit-sproutcore-1.0.20090721145281 gen/controller/Buildfile
sproutit-sproutcore-1.0.20090721145282 gen/controller/Buildfile
sproutit-sproutcore-1.0.203 gen/controller/Buildfile