startapp 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rhc/commands/clone.rb +2 -2
- data/lib/rhc/commands/deploy.rb +3 -3
- data/lib/rhc/commands/domain.rb +2 -2
- data/spec/rhc/commands/clone_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62534235a84cf432e5a4325318772c3365b3d3dc
|
4
|
+
data.tar.gz: 328f62eea04a8b105a8617b55483cce5bd08df03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0be0a15a532ad17beb49157001e67cfbd14fa504009a8b6e5a512c0ed21e8303cf8483bc503f44a22931fa4309ca375826029fa81fd8f5fa1cbae736efa768ab
|
7
|
+
data.tar.gz: 12dd49c46003afb50f6a7788033948a116f0c20c226def0288cbcbbeb76bfbf86de0331c6e3f13ab8cb9534680599d82d5df5d0a7bde63cd93f9f85a803fa9c0
|
data/lib/rhc/commands/clone.rb
CHANGED
@@ -21,7 +21,7 @@ module RHC::Commands
|
|
21
21
|
app_name = options.app = app[:name]
|
22
22
|
options.namespace = app[:domain]
|
23
23
|
else
|
24
|
-
warn "URL is invalid. To clone app your url must be something like this: http://appname-domain.
|
24
|
+
warn "URL is invalid. To clone app your url must be something like this: http://appname-domain.sapp.io/"
|
25
25
|
return 1
|
26
26
|
end
|
27
27
|
end
|
@@ -47,7 +47,7 @@ module RHC::Commands
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def startapp_url?(candidate)
|
50
|
-
!!(/[a-zA-Z0-9]+-[a-zA-Z0-9]+\.
|
50
|
+
!!(/[a-zA-Z0-9]+-[a-zA-Z0-9]+\.sapp\./.match(candidate))
|
51
51
|
end
|
52
52
|
|
53
53
|
def clean_url(url)
|
data/lib/rhc/commands/deploy.rb
CHANGED
@@ -6,13 +6,13 @@ module RHC::Commands
|
|
6
6
|
summary "Deploy a git reference or binary file of an application"
|
7
7
|
syntax "<ref> --app NAME [--namespace NAME]"
|
8
8
|
description <<-DESC
|
9
|
-
By default
|
9
|
+
By default StartApp applications prepare, distribute, and activate deployments
|
10
10
|
on every git push. Alternatively, a user may choose to disable automatic
|
11
|
-
deployments and use '
|
11
|
+
deployments and use 'app deploy' and 'app deployment' commands to fully control the
|
12
12
|
deployment lifecycle.
|
13
13
|
|
14
14
|
Use this command to prepare, distribute and deploy manually from a git reference
|
15
|
-
(commit id, tag or branch) or from a binary file. Check also '
|
15
|
+
(commit id, tag or branch) or from a binary file. Check also 'app configure-app'
|
16
16
|
to configure your application to deploy manually and set the number of deployments
|
17
17
|
to keep in history.
|
18
18
|
|
data/lib/rhc/commands/domain.rb
CHANGED
@@ -11,7 +11,7 @@ module RHC::Commands
|
|
11
11
|
For example, when creating a domain with the name "test", any applications
|
12
12
|
created in that domain will have the public URL:
|
13
13
|
|
14
|
-
http://<appname>-
|
14
|
+
http://<appname>-domain.sapp.io
|
15
15
|
|
16
16
|
Each account may have access to one or more domains shared by others. Depending
|
17
17
|
on your plan or configuration, you may be able to create more than one domain.
|
@@ -31,7 +31,7 @@ module RHC::Commands
|
|
31
31
|
application public URLs. For example, when creating a domain with the name "test",
|
32
32
|
all applications in that domain will have the public URL:
|
33
33
|
|
34
|
-
http://<appname>-
|
34
|
+
http://<appname>-domain.sapp.io
|
35
35
|
|
36
36
|
The domain owner may limit the gear sizes available to applications by using the
|
37
37
|
'--allowed-gear-sizes' option. If '--no-allowed-gear-sizes' is set, no applications
|
@@ -15,21 +15,21 @@ describe RHC::Commands::Clone do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
context 'with valid url and no domains' do
|
18
|
-
let(:arguments) { ['clone','http://myapp-mydomain.
|
18
|
+
let(:arguments) { ['clone','http://myapp-mydomain.sapp.io'] }
|
19
19
|
|
20
20
|
it { expect { run }.to exit_with_code(127) }
|
21
21
|
it { run_output.should match(/Domain *mydomain* not found/) }
|
22
22
|
end
|
23
23
|
|
24
24
|
context 'with valid url and domain' do
|
25
|
-
let(:arguments) { ['clone','http://myapp-myfirsrdomain.
|
25
|
+
let(:arguments) { ['clone','http://myapp-myfirsrdomain.sapp.io'] }
|
26
26
|
let!(:domain){ rest_client.add_domain("myfirsrdomain") }
|
27
27
|
|
28
28
|
it { expect { run }.to exit_with_code(101) }
|
29
29
|
it { run_output.should match(/Application myapp does not exist/) }
|
30
30
|
|
31
31
|
context 'with apps' do
|
32
|
-
let(:arguments) { ['clone','http://myapp-myfirsrdomain.
|
32
|
+
let(:arguments) { ['clone','http://myapp-myfirsrdomain.sapp.io'] }
|
33
33
|
before{ domain.add_application('myapp') }
|
34
34
|
|
35
35
|
it { expect { run }.to exit_with_code(216) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: startapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StartApp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|