Sha256: f6f2009bfe04d2500c32fa62a3fbe91a9fe6a39646cb49f4a5a4492b2c440fea

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

module DeployNotes
  # Class for local deployments
  class Local
    def get
      branch_name + ':' + commit_info
    end

    private

    def branch_name
      `git rev-parse --abbrev-ref HEAD`
    end

    def commit_info
      `git log -n1 --pretty=format::%ae:%s:%cr`
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deploy_notes-0.0.6 lib/deploy_notes/local.rb
deploy_notes-0.0.5 lib/deploy_notes/local.rb