class GithubPages::DeployTask
Attributes
branch[RW]
destination[RW]
handler[R]
message[RW]
remote[RW]
repo[RW]
source[RW]
Public Class Methods
new(*args) { |self| ... }
click to toggle source
# File lib/ghpages_deploy/rake/task.rb, line 13 def initialize(*args) @args = args @handler = GithubPages::Handler.new yield self if block_given? @source &&= @source.gsub(%r{^#{Dir.pwd}[\/]?}, '') @destination ||= '.' @source ||= '.' @remote ||= 'origin' define end
Private Instance Methods
define()
click to toggle source
# File lib/ghpages_deploy/rake/task.rb, line 35 def define task(*@args) do GitManager.open(@remote, @source, @repo, @branch) do |git| Deployer.new(git, @source, @destination, @message, @handler).deploy end end end