Sha256: 848be245311dc52f6388a2f3c58a78c0763d2dc2f99f3d80f32aa35a9b3d4924

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

module JekyllPush
  #
  #
  module Travis
    #
    #
    def commit
      "Updated via JekyllPush Travis \"#{ENV['TRAVIS_COMMIT']}\" at #{@time}."
    end

    #
    #
    def origin
      @repo_slug = ENV['TRAVIS_REPO_SLUG']
      @user      = @repo_slug.split('/').first
      @token     = ENV['ACCESS_TOKEN']

      "https://#{@user}:#{@token}@github.com/#{@repo_slug}.git"
    end

    #
    #
    def msg
      "\nDeploying to branch '#{@target}' from Travis as #{@user}."
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll_push-0.1.0 lib/jekyll_push/travis.rb