module JekyllPush::Travis
Public Instance Methods
commit()
click to toggle source
@return [String]
# File lib/jekyll_push/travis.rb, line 9 def commit "Updated via JekyllPush Travis \"#{ENV['TRAVIS_COMMIT']}\" at #{@time}." end
msg()
click to toggle source
@return [String]
# File lib/jekyll_push/travis.rb, line 25 def msg "\nDeploying to branch '#{@target}' from Travis as #{@user}." end
origin(opts)
click to toggle source
@return [String]
# File lib/jekyll_push/travis.rb, line 15 def origin(opts) @repo_slug = ENV['TRAVIS_REPO_SLUG'] @user = opts.fetch :user, @repo_slug.split('/').first @token = opts.fetch :pw, ENV['ACCESS_TOKEN'] "https://#{@user}:#{@token}@github.com/#{@repo_slug}.git" end