Class: CommitHash::CommitController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/commit_hash/commit_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
5
6
7
8
9
10
# File 'lib/commit_hash/commit_controller.rb', line 2

def show
  commit = ENV['RELEASE_COMMIT']

  if commit
    render plain: commit, status: 200
  else
    render plain: "ENV['RELEASE_COMMIT'] => nil", status: 500
  end
end