Class: GithubPages::DeployTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- GithubPages::DeployTask
- Includes:
- JekyllRakeExt, JsonRakeExt
- Defined in:
- lib/ghpages_deploy/rake/task.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
-
#message ⇒ Object
Returns the value of attribute message.
-
#remote ⇒ Object
Returns the value of attribute remote.
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(*args) {|_self| ... } ⇒ DeployTask
constructor
A new instance of DeployTask.
Methods included from JsonRakeExt
directory_mash, directory_sitemap, expand_lists, #generate_json_sitemap, map_file, mash, sanitize_list, sitemap
Methods included from JekyllRakeExt
Constructor Details
#initialize(*args) {|_self| ... } ⇒ DeployTask
Returns a new instance of DeployTask.
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
#branch ⇒ Object
Returns the value of attribute branch.
29 30 31 |
# File 'lib/ghpages_deploy/rake/task.rb', line 29 def branch @branch end |
#destination ⇒ Object
Returns the value of attribute destination.
28 29 30 |
# File 'lib/ghpages_deploy/rake/task.rb', line 28 def destination @destination end |
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
31 32 33 |
# File 'lib/ghpages_deploy/rake/task.rb', line 31 def handler @handler end |
#message ⇒ Object
Returns the value of attribute message.
30 31 32 |
# File 'lib/ghpages_deploy/rake/task.rb', line 30 def end |
#remote ⇒ Object
Returns the value of attribute remote.
28 29 30 |
# File 'lib/ghpages_deploy/rake/task.rb', line 28 def remote @remote end |
#repo ⇒ Object
Returns the value of attribute repo.
29 30 31 |
# File 'lib/ghpages_deploy/rake/task.rb', line 29 def repo @repo end |
#source ⇒ Object
Returns the value of attribute source.
28 29 30 |
# File 'lib/ghpages_deploy/rake/task.rb', line 28 def source @source end |