class Dens::CLI

Attributes

destination[R]
mover[R]
origin[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/dens/cli.rb, line 4
def initialize(options = {})
  @origin = options.fetch(:origin)
  @destination = options.fetch(:destination)
  @mover = options.fetch(:mover, Dens::Mover)
end
start() click to toggle source
# File lib/dens/cli.rb, line 14
def self.start
  Dens::CLI.new(origin: ARGV[0], destination: ARGV[1]).start
end

Public Instance Methods

start() click to toggle source
# File lib/dens/cli.rb, line 10
def start
  mover.move(origin, destination)
end