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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebb8b29ac77890f161737dfe0326e4f9744d355c
4
- data.tar.gz: d95326b688c1997088cd32bfb631442185db59a9
3
+ metadata.gz: edae53feedd02a7e8ec45841bed6bab3e24ca274
4
+ data.tar.gz: 920c83ce921af1c9b1b117095a417a4f0d005cef
5
5
  SHA512:
6
- metadata.gz: e4752d86739d37376f680588e68c249decbe21cac96f9b9facb8537d2e4103d2867c008429bf98cfcdb18286f8ac2ac30f84cff277dfd7c8e6dc0659cd93b8c1
7
- data.tar.gz: 93083cae83c56ac2ba10dcbe684aab5756f15432af7d2996672d78bec6d62c653348d5f0380e85037295692167b74c7a2d93643627cd6a16dc3a0f261e3daeff
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
@@ -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
- command = "curl -s #{url(server)}/deploy/#{token(server)}"
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
@@ -1,3 +1,3 @@
1
1
  module Rmd
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
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.12
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-01 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler