capistrano-upload 1.0.0 → 1.0.1

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: feca1bba936e3326ccf790aafc64862e3a15453d
4
- data.tar.gz: a148186e628976cc38c2e2d1aa86a41d149007a2
3
+ metadata.gz: 80036b86c4c77349dafc6203c922e21e34443137
4
+ data.tar.gz: 8d27f1c78e5e28aa6abc54564d57c5458d515a2b
5
5
  SHA512:
6
- metadata.gz: 0bd48c9f2f034b90daf52d4f7f4385091bfbcaf278f4ea9e8ea79a20554769ba6a840c88b9b805a373f9b9d8f935c0e6025d4185bf5cd8fc0f13ecb718e71bec
7
- data.tar.gz: 3651c682673168b97d29391d4323002fe2fef7b9f665d83762c36b740272e126be38f475371f3fd53e898388156ec78e86a593ae8402242d5e142cfbef34ee6c
6
+ metadata.gz: 99ea88eeb94bb2cff2eae313a530f0909d33681ae6c736a84a7ac0a5f9246a6128a599214647e906b0f6040f2c9ebbcde8ba11e53486d5e577fb2e8cd76754b3
7
+ data.tar.gz: 0a61e5dcba8246d88e7e8f02ba52aea2c421dda12eb46f5fc2894e1bff0f21a149a27f4a193f0217d0541639350b5f2d7c0b81c2573658e0fa6fcaa5db68e810
@@ -0,0 +1,31 @@
1
+ # Capistrano upload
2
+
3
+ Adds a `deploy:upload` task that can be used to copy files to the currently deployed version.
4
+
5
+ ## Install
6
+
7
+ Add the library to your Gemfile:
8
+
9
+ ```ruby
10
+ gem 'capistrano-upload', require: false
11
+ ```
12
+
13
+ And load it into your deployment script config/deploy.rb:
14
+
15
+ ```ruby
16
+ require 'capistrano/upload'
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ Example of usage:
22
+
23
+ ```
24
+ cap staging deploy:upload FILES=config/locales/en.yml
25
+ ```
26
+
27
+ This will upload your locale file to the staging deployment.
28
+
29
+ ## Responsibility
30
+
31
+ This task can be used to override files and may damage your deployment if used incorrectly. We take no responsibility for the use of this task. Use at your own risk!
@@ -0,0 +1,19 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'capistrano-upload'
6
+ s.version = '1.0.1'
7
+ s.date = '2014-06-03'
8
+ s.summary = "Adds the deploy:upload task back to Capistrano 3"
9
+ s.description = "Adds the deploy:upload task back to Capistrano 3"
10
+ s.authors = ["Erlingur Þorsteinsson"]
11
+ s.email = 'erlingur@themoon.is'
12
+ s.homepage = 'https://github.com/Reiknistofa/capistrano-upload'
13
+ s.license = 'MIT'
14
+
15
+ s.files = `git ls-files`.split($/)
16
+ s.require_paths = ["lib"]
17
+
18
+ s.add_runtime_dependency 'capistrano', '~> 3.0', '>= 3.0.0'
19
+ end
File without changes
@@ -0,0 +1,28 @@
1
+ namespace :deploy do
2
+ desc <<-DESC
3
+ Copy files to the currently deployed version. This is useful for updating \
4
+ files piecemeal, such as when you need to quickly deploy only a single \
5
+ file. Some files, such as updated templates, images, or stylesheets, \
6
+ might not require a full deploy, and especially in emergency situations \
7
+ it can be handy to just push the updates to production, quickly.
8
+
9
+ To use this task, specify the files and directories you want to copy as a \
10
+ comma-delimited list in the FILES environment variable. All directories \
11
+ will be processed recursively, with all files being pushed to the \
12
+ deployment servers.
13
+
14
+ $ cap staging deploy:upload FILES=templates,controller.rb
15
+
16
+ Dir globs are also supported:
17
+
18
+ $ cap staging deploy:upload FILES='config/apache/*.conf'
19
+ DESC
20
+ task :upload do
21
+ files = (ENV["FILES"] || "").split(",").map { |f| Dir[f.strip] }.flatten
22
+ abort "Please specify at least one file or directory to update (via the FILES environment variable)" if files.empty?
23
+
24
+ on release_roles :all do
25
+ files.each { |file| upload!(file, File.join(current_path, file)) }
26
+ end
27
+ end
28
+ end
@@ -0,0 +1 @@
1
+ load File.expand_path("../tasks/upload.cap", __FILE__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erlingur Þorsteinsson
@@ -14,20 +14,20 @@ dependencies:
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
- - - ">="
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 3.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.0'
30
- - - ">="
30
+ - - '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.0.0
33
33
  description: Adds the deploy:upload task back to Capistrano 3
@@ -35,7 +35,12 @@ email: erlingur@themoon.is
35
35
  executables: []
36
36
  extensions: []
37
37
  extra_rdoc_files: []
38
- files: []
38
+ files:
39
+ - README.md
40
+ - capistrano-upload.gemspec
41
+ - lib/capistrano-upload.rb
42
+ - lib/capistrano/tasks/upload.cap
43
+ - lib/capistrano/upload.rb
39
44
  homepage: https://github.com/Reiknistofa/capistrano-upload
40
45
  licenses:
41
46
  - MIT
@@ -46,17 +51,17 @@ require_paths:
46
51
  - lib
47
52
  required_ruby_version: !ruby/object:Gem::Requirement
48
53
  requirements:
49
- - - ">="
54
+ - - '>='
50
55
  - !ruby/object:Gem::Version
51
56
  version: '0'
52
57
  required_rubygems_version: !ruby/object:Gem::Requirement
53
58
  requirements:
54
- - - ">="
59
+ - - '>='
55
60
  - !ruby/object:Gem::Version
56
61
  version: '0'
57
62
  requirements: []
58
63
  rubyforge_project:
59
- rubygems_version: 2.2.2
64
+ rubygems_version: 2.0.0
60
65
  signing_key:
61
66
  specification_version: 4
62
67
  summary: Adds the deploy:upload task back to Capistrano 3