Sha256: 18e1c387725541c5ba3b644fccf84f61501c8189d67678434a835967c6647502

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

class AdminAppSettings
  def self.data(mapping)
    pp mapping
  end

  attr_reader :data

  def initialize(app)
    @app=app
    @data={}
  end

  def []=(name,value)
    @data[name]=value
  end

  def buildForm
    @data.map{|setting|
      
    }
  end

end

class SomeSettings
  def initialize(app)
    @app=app
  end
  def valuesFor(input)
  end

end

class StringSetting
  def htmlField(name)
    "<input type='input' name='#{name}'>#{value}</input>"
  end
end

class HTTPInstanceSetting
  def htmlField(name)
    
  end

  def possibleHttpApps
    @app.cluster.getApps(HTTPApp).map{|app|app.getAppName}
  end

  def possibleInstances(httpApp)
    @app.cluster.getAppByName(httpApp).instances
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 apps/admin/lib/settings.rb