Sha256: b937f897563f640b68936b02454199010e7101772b706d183b484f128dfdfe47

Contents?: true

Size: 754 Bytes

Versions: 17

Compression:

Stored size: 754 Bytes

Contents

class Rhohub::App < Rhohub::Base

  def self.create(data)
    catch_all do
      raise Exception.new "name must be passed to create ex: {app=>{:name => appname}}" unless data[:app][:name]
      super({},data,"apps")
    end
  end

  # options = {:id => app_id}
  def self.delete(options)
    catch_all do
      raise Exception.new "app_id must be passed to show ex: {:app_id => app_id}" unless options[:app_id]
      super(options,"apps")
    end
  end

  def self.list
    catch_all do
      super({},"apps")
    end
  end

  # options = {:app_id => app_id}
  def self.show(options)
    catch_all do
      raise Exception.new "app_id must be passed to show ex: {:app_id => app_id}" unless options[:app_id]
      super(options,"apps")
    end
  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/build/rhohub/app.rb
rhodes-7.5.1 lib/build/rhohub/app.rb
rhodes-7.4.1 lib/build/rhohub/app.rb
rhodes-7.1.17 lib/build/rhohub/app.rb
rhodes-6.2.0 lib/build/rhohub/app.rb
rhodes-6.0.11 lib/build/rhohub/app.rb
rhodes-5.5.18 lib/build/rhohub/app.rb
rhodes-5.5.17 lib/build/rhohub/app.rb
rhodes-5.5.15 lib/build/rhohub/app.rb
rhodes-5.5.0.22 lib/build/rhohub/app.rb
rhodes-5.5.2 lib/build/rhohub/app.rb
rhodes-5.5.0.7 lib/build/rhohub/app.rb
rhodes-5.5.0.3 lib/build/rhohub/app.rb
rhodes-5.5.0 lib/build/rhohub/app.rb
tauplatform-1.0.3 lib/build/rhohub/app.rb
tauplatform-1.0.2 lib/build/rhohub/app.rb
tauplatform-1.0.1 lib/build/rhohub/app.rb