rmdd 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rmd/cli.rb +2 -1
- data/lib/rmd/deploy_service.rb +7 -2
- data/lib/rmd/version.rb +1 -1
- 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: edae53feedd02a7e8ec45841bed6bab3e24ca274
|
4
|
+
data.tar.gz: 920c83ce921af1c9b1b117095a417a4f0d005cef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ecdd8b81536fc75db99afb78eb1a5540f7b22c847c35bd29e0a1dbcd159d3a86e58ad8212482301394f935c4aad44f64bd4fd8da82e2b8702f8e599b45027ec
|
7
|
+
data.tar.gz: 9e0c4b18ff03220b1aa89c3161868f9f9f9aa7de5a59d5eaec1e92322118ef3c80dadb06c376e852e715e569555d75161d900b3ab17b8595eb8311297d69b122
|
data/lib/rmd/cli.rb
CHANGED
@@ -19,9 +19,10 @@ module Rmd
|
|
19
19
|
|
20
20
|
desc 'deploy', 'Deploy to a server'
|
21
21
|
method_option :server, aliases: '-s', desc: 'Server name', type: :string, required: true
|
22
|
+
method_option :skip_assets, aliases: '-a', desc: 'Skip precompile assets', type: :boolean, default: false
|
22
23
|
def deploy
|
23
24
|
Cli.load_config
|
24
|
-
DeployService.deploy(options[:server])
|
25
|
+
DeployService.deploy(options[:server], options[:skip_assets])
|
25
26
|
rescue Exception => e
|
26
27
|
$stdout.puts(e.message)
|
27
28
|
end
|
data/lib/rmd/deploy_service.rb
CHANGED
@@ -5,9 +5,14 @@ module Rmd
|
|
5
5
|
class ServerNotFound < StandardError; end
|
6
6
|
|
7
7
|
class DeployService
|
8
|
-
def self.deploy(server)
|
8
|
+
def self.deploy(server, skip_assets = false)
|
9
9
|
validate(server)
|
10
|
-
|
10
|
+
deploy_url = if skip_assets
|
11
|
+
"#{url(server)}/deploy/#{token(server)}"
|
12
|
+
else
|
13
|
+
"#{url(server)}/deploy_without_assets/#{token(server)}"
|
14
|
+
end
|
15
|
+
command = "curl -s #{deploy_url}"
|
11
16
|
system_cmd(command)
|
12
17
|
end
|
13
18
|
|
data/lib/rmd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmdd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Duc Le
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|