Sha256: 7d92b8e6e5ba48af5b95f91bdba07baa699b29ed70926f6d9d7c5188103e034e

Contents?: true

Size: 418 Bytes

Versions: 5

Compression:

Stored size: 418 Bytes

Contents

module Insales::Controller
  module InstallerActions
    def install
      if insales_app_class.install(params[:shop], params[:token], params[:insales_id])
        head :ok
      else
        raise 'Instalation failed'
      end
    end

    def uninstall
      if insales_app_class.uninstall(params[:shop], params[:token])
        head :ok
      else
        raise 'Uninstallation failed'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
insales_api-0.2.0 lib/insales/controller/installer_actions.rb
insales_api-0.1.3 lib/insales/controller/installer_actions.rb
insales_api-0.1.2 lib/insales/controller/installer_actions.rb
insales_api-0.1.1 lib/insales/controller/installer_actions.rb
insales_api-0.1.0 lib/insales/controller/installer_actions.rb