Skip to content
Snippets Groups Projects
Commit ed0bbc69 authored by Bruno Michel's avatar Bruno Michel
Browse files

Use pry-rescue for debug

parent e8f40257
Branches
Tags
No related merge requests found
......@@ -3,4 +3,5 @@ source 'https://rubygems.org'
gem "awesome_print"
gem "faker"
gem "pry"
gem "pry-rescue"
gem "rest-client"
......@@ -12,6 +12,7 @@ GEM
domain_name (~> 0.5)
i18n (1.0.0)
concurrent-ruby (~> 1.0)
interception (0.5)
method_source (0.9.0)
mime-types (3.1)
mime-types-data (~> 3.2015)
......@@ -20,6 +21,9 @@ GEM
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-rescue (1.4.5)
interception (>= 0.5)
pry
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
......@@ -35,6 +39,7 @@ DEPENDENCIES
awesome_print
faker
pry
pry-rescue
rest-client
BUNDLED WITH
......
......@@ -30,17 +30,17 @@ class Stack
cmd = ["cozy-stack", "instances", "add", inst.domain, "--dev",
"--passphrase", inst.passphrase, "--public-name", inst.name,
"--email", inst.email, "--settings", "context:test",
"--admin-port", @admin, "--locale", "fr"]
"--admin-port", @admin.to_s, "--locale", "fr"]
puts cmd.join(" ").green
system cmd.join(" ")
system(*cmd)
end
def install_app(inst, app)
key = inst.domain + "/" + app
return if @apps[key]
cmd = ["cozy-stack", "apps", "install", app,
"--domain", inst.domain,
"--port", @port, "--admin-port", @admin]
"--port", @port, "--admin-port", @admin,
"--domain", inst.domain, ">", "/dev/null"]
puts cmd.join(" ").green
@apps[key] = system cmd.join(" ")
end
......
......@@ -2,6 +2,7 @@
require_relative '../boot'
require 'minitest/autorun'
require 'pry-rescue/minitest'
describe "A folder" do
Helpers.scenario "push_folder"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment