Class: RGitFlow::Tasks::Release
- Defined in:
- lib/rgitflow/tasks/release/start.rb,
lib/rgitflow/tasks/release/tasks.rb,
lib/rgitflow/tasks/release/finish.rb
Defined Under Namespace
Class Attribute Summary collapse
-
.instance ⇒ Object
Returns the value of attribute instance.
Instance Attribute Summary collapse
-
#git ⇒ Object
readonly
Returns the value of attribute git.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(git = nil) ⇒ Release
constructor
A new instance of Release.
- #install ⇒ Object
Constructor Details
#initialize(git = nil) ⇒ Release
Returns a new instance of Release.
17 18 19 |
# File 'lib/rgitflow/tasks/release/tasks.rb', line 17 def initialize(git = nil) @git = git || Git.open(Dir.pwd) end |
Class Attribute Details
.instance ⇒ Object
Returns the value of attribute instance.
8 9 10 |
# File 'lib/rgitflow/tasks/release/tasks.rb', line 8 def instance @instance end |
Instance Attribute Details
#git ⇒ Object (readonly)
Returns the value of attribute git.
15 16 17 |
# File 'lib/rgitflow/tasks/release/tasks.rb', line 15 def git @git end |
Class Method Details
.install_tasks(opts = {}) ⇒ Object
10 11 12 |
# File 'lib/rgitflow/tasks/release/tasks.rb', line 10 def install_tasks(opts = {}) new(opts[:git]).install end |