Class: PivotalShell::Commands::Commit

Inherits:
PivotalShell::Command show all
Defined in:
lib/pivotal_shell/commands/commit.rb

Instance Method Summary collapse

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(options)
  @message = options[0]
end

Instance Method Details

#executeObject



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