class StackMob::Deployer
Constants
- APP_PATH
Attributes
client[RW]
Public Class Methods
new(cl)
click to toggle source
# File lib/stackmob/deployer.rb, line 24 def initialize(cl) self.client = cl end
Public Instance Methods
fetch()
click to toggle source
# File lib/stackmob/deployer.rb, line 32 def fetch self.client.request(:get, :api, APP_PATH) end
register(hostname)
click to toggle source
# File lib/stackmob/deployer.rb, line 28 def register(hostname) self.client.request(:post, :api, APP_PATH, :hostname => hostname) end