Class: GithubPages::DeployTask

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
JekyllRakeExt, JsonRakeExt
Defined in:
lib/ghpages_deploy/rake/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JsonRakeExt

directory_mash, directory_sitemap, expand_lists, #generate_json_sitemap, map_file, mash, sanitize_list, sitemap

Methods included from JekyllRakeExt

#init_jekyll

Constructor Details

#initialize(*args) {|_self| ... } ⇒ DeployTask

Returns a new instance of DeployTask.

Yields:

  • (_self)

Yield Parameters:



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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

Instance Attribute Details

#branchObject

Returns the value of attribute branch.



29
30
31
# File 'lib/ghpages_deploy/rake/task.rb', line 29

def branch
  @branch
end

#destinationObject

Returns the value of attribute destination.



28
29
30
# File 'lib/ghpages_deploy/rake/task.rb', line 28

def destination
  @destination
end

#handlerObject (readonly)

Returns the value of attribute handler.



31
32
33
# File 'lib/ghpages_deploy/rake/task.rb', line 31

def handler
  @handler
end

#messageObject

Returns the value of attribute message.



30
31
32
# File 'lib/ghpages_deploy/rake/task.rb', line 30

def message
  @message
end

#remoteObject

Returns the value of attribute remote.



28
29
30
# File 'lib/ghpages_deploy/rake/task.rb', line 28

def remote
  @remote
end

#repoObject

Returns the value of attribute repo.



29
30
31
# File 'lib/ghpages_deploy/rake/task.rb', line 29

def repo
  @repo
end

#sourceObject

Returns the value of attribute source.



28
29
30
# File 'lib/ghpages_deploy/rake/task.rb', line 28

def source
  @source
end