cartage-remote 2.0.rc2 → 2.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cartage/plugins/remote.rb +14 -10
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a48261f2671fa0daf8d97401b9c997122e6510a
4
- data.tar.gz: 253103656754eafd0f112dd4f4fbff371939d67b
3
+ metadata.gz: da9fbc6560ce08b5b26ceba6b9c70c5e707ac90c
4
+ data.tar.gz: 5d77e60ebec928f1ba3999e937b3425c8cb4bf4c
5
5
  SHA512:
6
- metadata.gz: bf20b7c20608c2963741e245a09752b65fb38cb1eb5d349d07f4c2ca75ead50efa4b1977390ddc9d77c7501711ddf356611b70f134c95b60f80e20eb4500acef
7
- data.tar.gz: 28d12e6b29203c626982eec35f9428351272ecc8cab316b3196e53fd62ac6f2dd92b6c050cf2dc526ab3171dd13b71df0a1f45c5416d351c6da33a8fa458eb37
6
+ metadata.gz: 459d6abaa67d9eb3b20f2c576e1646a89a609bdadb055f41fbe4e2087a7061303e51b1cb7edb23ad7f9ae89b4ea18f8efaed793f0ba0026d69f7953192bdc3cb
7
+ data.tar.gz: fdc513def32368161ad6fcfec8a340c69f055f419dd02c11c01b3cec50a539deeb4f77c778d800470094bb0d7e959e260c1a1357f3c77d85bb8e86167660a8c0
@@ -95,12 +95,15 @@ class Cartage
95
95
  # set -e
96
96
  # if [ -f Gemfile ]; then
97
97
  # bundle install --path %{remote_bundle}
98
- # bundle exec cartage build \
98
+ # bundle exec cartage \
99
99
  # --config-file %{config_file} \
100
- # --target %{project_path}
100
+ # --target %{project_path} \
101
+ # pack
101
102
  # else
102
- # cartage build --config-file %{config_file} \
103
- # --target %{project_path}
103
+ # cartage \
104
+ # --config-file %{config_file} \
105
+ # --target %{project_path} \
106
+ # pack
104
107
  # fi
105
108
  # +prebuild+:: A multiline YAML string that is run as a script on the local
106
109
  # machine to prepare for running remotely. If not provided, the
@@ -162,7 +165,7 @@ class Cartage
162
165
  # server. Set the same as +project_path+.
163
166
  # +config_file+:: The remote filename of the computed Cartage configuration.
164
167
  # Must be provided to the remote run of +cartage+.
165
- # bundle exec cartage build --config-file %{config_file}
168
+ # bundle exec cartage --config-file %{config_file} pack
166
169
  # +build_script+:: The full path to the remote build script.
167
170
  # <tt><em>isolation_path</em>/cartage-build-remote</tt>.
168
171
  #
@@ -176,10 +179,10 @@ class Cartage
176
179
  # script: |
177
180
  # #! /bin/bash
178
181
  # bundle install --path %{remote_bundle} &&
179
- # bundle exec cartage build --config-file %{config_file} &&
180
- # bundle exec cartage s3 --config-file %{config_file}
182
+ # bundle exec cartage --config-file %{config_file} pack &&
183
+ # bundle exec cartage --config-file %{config_file} s3 put
181
184
  class Remote < Cartage::Plugin
182
- VERSION = '2.0.rc2' #:nodoc:
185
+ VERSION = '2.0.rc3' #:nodoc:
183
186
 
184
187
  # Build on the remote server.
185
188
  def build
@@ -364,6 +367,7 @@ cd #{paths.build_path} && git checkout #{cartage.release_hashref}
364
367
  config.hosts ||= OpenStruct.new
365
368
  default = Cartage::Remote::Host.new(config.server).to_hash
366
369
  config.hosts.default ||= OpenStruct.new(default)
370
+ config.delete_field(:server)
367
371
  end
368
372
 
369
373
  if config.keys.kind_of?(OpenStruct)
@@ -464,9 +468,9 @@ set -e
464
468
 
465
469
  if [ -f Gemfile ]; then
466
470
  bundle install --path %{remote_bundle}
467
- bundle exec cartage build --config-file %{config_file} --target %{project_path}
471
+ bundle exec cartage --config-file %{config_file} --target %{project_path} pack
468
472
  else
469
- cartage build --config-file %{config_file} --target %{project_path}
473
+ cartage --config-file %{config_file} --target %{project_path} pack
470
474
  fi
471
475
  script
472
476
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartage-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.rc2
4
+ version: 2.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-28 00:00:00.000000000 Z
11
+ date: 2016-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cartage