lib/jekyll_push/branch.rb in jekyll_push-0.1.1 vs lib/jekyll_push/branch.rb in jekyll_push-0.1.2

- old
+ new

@@ -5,18 +5,18 @@ # class Branch attr_reader :target # @param target [String] the name of the Git branch to deploy to - def initialize(target) + def initialize(target, opts) @target = JekyllPush::Utils.slugify target @time = Time.now.strftime('%H:%M on %Y-%m-%d') (class << self; include JekyllPush::Travis; end) if on_travis? (class << self; include JekyllPush::Local; end) if local? @commit = commit - @origin = origin + @origin = origin opts @msg = msg raise JekyllPush::Error::NoOrigin, 'No remote origin was found for the project GitHub repository.' if @origin.empty? end