module Snapme
  class ImagesnapCommand
    def call(filename)
      `#{command_name} #{filename}`
    end

    private

    def command_name
      'imagesnap'
    end
  end
end

module Snapme
  class ImagesnapCommand
    def call(filename)
      system(command_name, filename)
    end

    private

    def command_name
      'imagesnap'
    end
  end
end

Use system method rather than ticks for shell out
Use system method rather than ticks for shell out

* Seems to be a little more clear and doens't require string
  interpolation for arguments
