Sha256: 4769f29f928b51f46fa8a28608aa73d4975e950c4eacc0ab3050b07a42a580b8

Contents?: true

Size: 428 Bytes

Versions: 16

Compression:

Stored size: 428 Bytes

Contents

require "baton"
require "baton/api"
require "json"

module Baton
  class <%= config[:constant_array].last %>API < Baton::API

    # TODO - delete the dummy api method and add your own api
    # at this point, you can call methods on your project to
    # return meaningful responses (deploy status, for example)
    def self.dummy(env)
      message = {type: "dummy"}
      publish(message.to_json, "#{env}")
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
baton-0.7.0 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.6.0 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.5.6 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.5.5 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.5.4 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.5.2 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.10 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.9 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.8 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.5 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.4 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.3 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.2 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.4.1 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.3.7 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt
baton-0.3.6 lib/baton/templates/gem/lib/baton/gem/gem-api.rb.tt