lib/jekyll_push/travis.rb in jekyll_push-0.1.0 vs lib/jekyll_push/travis.rb in jekyll_push-0.1.1
- old
+ new
@@ -3,26 +3,26 @@
module JekyllPush
#
#
module Travis
#
- #
+ # @return [String]
def commit
"Updated via JekyllPush Travis \"#{ENV['TRAVIS_COMMIT']}\" at #{@time}."
end
#
- #
+ # @return [String]
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
#
- #
+ # @return [String]
def msg
"\nDeploying to branch '#{@target}' from Travis as #{@user}."
end
end
end