Class: Scatter::Commands::Push

Inherits:
Scatter::Command show all
Defined in:
lib/scatter/commands/push.rb

Instance Method Summary collapse

Methods inherited from Scatter::Command

command_name, help, inherited, usage

Constructor Details

#initialize(out, gemfile, destination) ⇒ Push

Returns a new instance of Push.



16
17
18
19
# File 'lib/scatter/commands/push.rb', line 16

def initialize(out, gemfile, destination)
  super(out)
  @gemfile, @destination = gemfile, destination
end

Instance Method Details

#destObject



25
26
27
# File 'lib/scatter/commands/push.rb', line 25

def dest
  @dest ||= Scatter::Config.find_destination(@destination)
end

#execute!Object



21
22
23
# File 'lib/scatter/commands/push.rb', line 21

def execute!
  dest.push(@gemfile)
end