res/generators/rhogen.rb in rhodes-2.0.0.beta2 vs res/generators/rhogen.rb in rhodes-2.0.0.beta3

- old
+ new

@@ -134,15 +134,15 @@ first_argument :name, :required => true, :desc => "model name" second_argument :attributes, :as => :array, :required => true, :desc => "list of one or more string attributes (i.e. name,industry,progress), NO spaces between attributes" third_argument :priority, :required => false, :desc => "optional sync priority (i.e. 100)" fourth_argument :type, :required => false, :desc => "optional type (i.e. \"ask\" for an ask model)" - template :config do |template| - @model_sync_server = syncserver_exists? ? class_name : '' - template.source = 'config.rb' - template.destination = "app/#{name.camel_case}/config.rb" - end + #template :config do |template| + # @model_sync_server = syncserver_exists? ? class_name : '' + # template.source = 'config.rb' + # template.destination = "app/#{name.camel_case}/config.rb" + #end template :index do |template| template.source = 'index.erb' template.destination = "app/#{name.camel_case}/index.erb" end @@ -195,11 +195,11 @@ end template :spec do |template| underscore_name = name.camel_case.split(/(?=[A-Z])/).map{|w| w.downcase}.join("_") template.source = 'spec.rb' - template.destination = "app/#{name.camel_case}/#{underscore_name}_spec.rb" + template.destination = "app/test/#{underscore_name}_spec.rb" end def attributes? self.attributes && !self.attributes.empty? end @@ -236,13 +236,13 @@ end directory :mspec do |directory| directory.source = 'app/mspec' directory.destination = "app/mspec" end - directory :spec do |directory| - directory.source = 'app/spec' - directory.destination = "app/spec" - end + #directory :spec do |directory| + # directory.source = 'app/spec' + # directory.destination = "app/spec" + #end template :fileutils do |template| template.source = 'app/fileutils.rb' template.destination = "app/fileutils.rb" end template :mspecrb do |template|