Class: Lilypad::Hoptoad::Deploy

Inherits:
Object
  • Object
show all
Includes:
Config::Methods, Log::Methods
Defined in:
lib/lilypad/hoptoad/deploy.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Log::Methods

#log

Methods included from Config::Methods

#api_key

Constructor Details

#initialize(options) ⇒ Deploy

Returns a new instance of Deploy.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/lilypad/hoptoad/deploy.rb', line 8

def initialize(options)
  @options = options
  
  begin
    post
  rescue Exception => e
  end
  
  log :deploy, @response
  success?
end

Class Method Details

.last_requestObject



21
22
23
# File 'lib/lilypad/hoptoad/deploy.rb', line 21

def last_request
  defined?(@@last_request) ? @@last_request : nil
end