class Tug::Deployer

Attributes

api_token[R]
dsym[R]
file[R]
notes[R]
notify[R]

Public Class Methods

new(options) click to toggle source
# File lib/tug/deployment/deployer.rb, line 10
def initialize(options)
  @file       = options[:file]
  @api_token  = options[:api_token]
  @notify     = options[:notify]
  @dsym       = options[:dsym]
  @notes      = options[:release_notes]
end

Public Instance Methods

deploy() click to toggle source
# File lib/tug/deployment/deployer.rb, line 18
def deploy
  IO.popen("curl #{url} -X POST -# #{params}") do |pipe|
    puts pipe.read
  end
end

Private Instance Methods

params() click to toggle source
# File lib/tug/deployment/deployer.rb, line 30
def params
  params  = "-F \"notes=<#{notes}\" "
  params += "-F \"dsym=@#{dsym}\" "
  params += "-F \"notify=#{notify}\" "
end
url() click to toggle source
# File lib/tug/deployment/deployer.rb, line 26
def url
  ""
end