Class: Backlog::Push

Inherits:
Object
  • Object
show all
Defined in:
lib/backlog/push.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, date) ⇒ Push

Returns a new instance of Push.



5
6
7
8
# File 'lib/backlog/push.rb', line 5

def initialize(args, date)
  # determine whether or not this is pushable
  @pushable = remote_set
end

Class Method Details

.helpObject



16
17
18
19
20
21
22
# File 'lib/backlog/push.rb', line 16

def self.help

  return <<-eos
  Push:\tPush current backlog to git
  eos

end

Instance Method Details

#execute!Object



10
11
12
13
14
# File 'lib/backlog/push.rb', line 10

def execute!
  if @pushable
    push
  end
end