Class: Samus::Rake::ReleaseTask

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
Helpers
Defined in:
lib/samus/rake/samus_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace = :samus) {|_self| ... } ⇒ ReleaseTask

Returns a new instance of ReleaseTask.

Yields:

  • (_self)

Yield Parameters:



124
125
126
127
128
129
130
131
132
# File 'lib/samus/rake/samus_task.rb', line 124

def initialize(namespace = :samus)
  @namespace = namespace
  @buildfile = ""
  @zipfile = nil
  @git_pull_before_build = true
  @git_pull_after_publish = true
  yield self if block_given?
  define
end

Instance Attribute Details

#buildfileObject

Returns the value of attribute buildfile.



121
122
123
# File 'lib/samus/rake/samus_task.rb', line 121

def buildfile
  @buildfile
end

#git_pull_after_publishObject

Returns the value of attribute git_pull_after_publish.



120
121
122
# File 'lib/samus/rake/samus_task.rb', line 120

def git_pull_after_publish
  @git_pull_after_publish
end

#git_pull_before_buildObject

Returns the value of attribute git_pull_before_build.



119
120
121
# File 'lib/samus/rake/samus_task.rb', line 119

def git_pull_before_build
  @git_pull_before_build
end

#zipfile=(value) ⇒ Object

Sets the attribute zipfile

Parameters:

  • value

    the value to set the attribute zipfile to.



122
123
124
# File 'lib/samus/rake/samus_task.rb', line 122

def zipfile=(value)
  @zipfile = value
end