Class: Rhohub::App

Inherits:
Base show all
Defined in:
lib/build/rhohub/app.rb

Class Method Summary collapse

Methods inherited from Base

catch_all, check, login, platforms, supported_gems, user_status

Class Method Details

.create(data) ⇒ Object



3
4
5
6
7
8
# File 'lib/build/rhohub/app.rb', line 3

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

.delete(options) ⇒ Object

options = => app_id



11
12
13
14
15
16
# File 'lib/build/rhohub/app.rb', line 11

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

.listObject



18
19
20
21
22
# File 'lib/build/rhohub/app.rb', line 18

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

.show(options) ⇒ Object

options = => app_id



25
26
27
28
29
30
# File 'lib/build/rhohub/app.rb', line 25

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