2
3
4
5
6
7
8
9
10
11
|
# File 'app/controllers/version_controller.rb', line 2
def index
framework_version = Gem.loaded_specs['maestrano-connector-rails'].version.version
branch = ENV['GIT_BRANCH']
commit = ENV['GIT_COMMIT_ID']
respond_to do |format|
format.html { render text: "framework_version=#{framework_version}\nci_branch=#{branch}\nci_commit=#{commit}\nenv=#{Rails.env}\nruby_version=#{RUBY_VERSION}\nruby_engine=#{RUBY_ENGINE}\n" }
format.json { render json: {framework_version: framework_version, ci_branch: branch, ci_commit: commit, env: Rails.env, ruby_version: RUBY_VERSION, ruby_engine: RUBY_ENGINE} }
end
end
|