Class: Scatter::Commands::Push
- Inherits:
-
Scatter::Command
- Object
- Scatter::Command
- Scatter::Commands::Push
- Defined in:
- lib/scatter/commands/push.rb
Instance Method Summary collapse
- #dest ⇒ Object
- #execute! ⇒ Object
-
#initialize(out, gemfile, destination) ⇒ Push
constructor
A new instance of Push.
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
#dest ⇒ Object
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 |