Class: InfluxdbSetup::MarkDeploy
- Defined in:
- lib/influxdb_setup/mark_deploy.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from InfluxdbSetup::Command
Instance Method Details
#call(commit) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/influxdb_setup/mark_deploy.rb', line 3 def call(commit) db = @config.db_name root = @config.build_client(db) root.write_point("deploys", values: { rails_env: Config.env, commit: commit }) log("Marked deploy: #{Config.env} at sha #{commit}") end |