Class: PivotalShell::Commands::Commit
- Inherits:
-
PivotalShell::Command
- Object
- PivotalShell::Command
- PivotalShell::Commands::Commit
- Defined in:
- lib/pivotal_shell/commands/commit.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize(options) ⇒ Commit
Returns a new instance of Commit.
3 4 5 |
# File 'lib/pivotal_shell/commands/commit.rb', line 3 def initialize() @message = [0] end |
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/pivotal_shell/commands/commit.rb', line 7 def execute puts 'Doesnt work yet! Sorry.' #exit 0 if (message =~ /\[#\d+\]/) || (message =~ /merge/i) # there is already a task ID in the message, or it is a merge #input = File.open('/dev/tty', 'r') #PivotalShell::Configuration.cache.update end |