Class: Rhohub::App
Class Method Summary collapse
- .create(data) ⇒ Object
-
.delete(options) ⇒ Object
options = => app_id.
- .list ⇒ Object
-
.show(options) ⇒ Object
options = => app_id.
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() catch_all do raise Exception.new "app_id must be passed to show ex: {:app_id => app_id}" unless [:app_id] super(,"apps") end end |
.list ⇒ Object
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() catch_all do raise Exception.new "app_id must be passed to show ex: {:app_id => app_id}" unless [:app_id] super(,"apps") end end |