Sha256: 93177dd7dde621bbe93428ad34e2edfe3838889fb3dd75c6636ee9aef7c79b9b

Contents?: true

Size: 789 Bytes

Versions: 3

Compression:

Stored size: 789 Bytes

Contents

class EmergentIphoneGenerator < Rails::Generator::NamedBase
  def manifest
    record do |m|
      # Ensure appropriate folder(s) exists
      m.directory 'some_folder'
      if options[:iphone]
        puts 'Installing Tank-Engine, THE Rails-iPhone Framework...'
        puts 'Afterwards, install iPhoney, the Mac-only iPhone emulator from here:'
        puts 'http://marketcircle.com/iphoney/'
        system('ruby script/plugin install git://github.com/noelrappin/tank-engine.git')
        system('rake tank_engine:install')
      end
      # Create stubs
      # m.template "template.rb",  "some_file_after_erb.rb"
      # m.file     "file",         "some_file_copied"
    end
  end

  protected
    def banner
      <<-EOS
Creates a ...

USAGE: #{$0} #{spec.name} name
EOS
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_iphone/emergent_iphone_generator.rb
emergent-core-0.1.02 rails_generators/emergent_iphone/emergent_iphone_generator.rb
emergent-core-0.1.01 rails_generators/emergent_iphone/emergent_iphone_generator.rb