bedrock-capistrano-uploads 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 44769591feca27c2190072886077a06eb9583f68
4
+ data.tar.gz: 5de8b66827f814e2a66e07496060dc3499ed1e73
5
+ SHA512:
6
+ metadata.gz: 9ee78666242ed1fc3091303cd029d8d7eedda562fe092a4a460b2451ec42eb09e513494af1626bc0f9534c92403e87317355df9e0d08a7a401b95eda15bbab77
7
+ data.tar.gz: 35285f88d0d39aa35b5e2f73979fb346270a4d96590b55eed25b82aca816df0e91c605526fd4c05b67fa3afd3805ca454b39e51a3f9fd8a1e2982c63478ad705
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ # Mac OS X
2
+ .DS_Store
3
+
4
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,31 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bedrock-capistrano-uploads (0.0.1)
5
+ capistrano (>= 3.0.0.pre)
6
+ dotenv (>= 2.0.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ capistrano (3.4.0)
12
+ i18n
13
+ rake (>= 10.0.0)
14
+ sshkit (~> 1.3)
15
+ colorize (0.7.7)
16
+ dotenv (2.0.1)
17
+ i18n (0.7.0)
18
+ net-scp (1.2.1)
19
+ net-ssh (>= 2.6.5)
20
+ net-ssh (2.9.2)
21
+ rake (10.4.2)
22
+ sshkit (1.7.1)
23
+ colorize (>= 0.7.0)
24
+ net-scp (>= 1.1.2)
25
+ net-ssh (>= 2.8.0)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ bedrock-capistrano-uploads!
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Norkay AB – Step by step, to the top.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Capistrano uploads-tasks for Bedrock (https://github.com/roots/bedrock)
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'bedrock-capistrano-uploads', '~> 0.0.1'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install bedrock-capistrano-uploads
18
+
19
+ ## Usage
20
+
21
+ Require the module in your `Capfile`:
22
+
23
+ ```ruby
24
+ require 'bedrock-capistrano-uploads'
25
+ ```
26
+
27
+ `bedrock-capistrano-uploads` comes with one task:
28
+
29
+ * uploads:sync
30
+
31
+ The `uploads:sync` task will backup your uploads folder to your local uploads-folder.
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create new Pull Request
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = 'bedrock-capistrano-uploads'
6
+ spec.version = '0.0.1'
7
+ spec.authors = ['Fredrik Sundström']
8
+ spec.email = ['fredrik.sundstrom@norkay.se']
9
+ spec.description = %q{Uploads tasks for roots/bedrock, using Capistrano 3.x}
10
+ spec.summary = %q{Uploads tasks for roots/bedrock, using Capistrano 3.x}
11
+ spec.homepage = 'https://github.com/norkay/bedrock-capistrano-uploads'
12
+ spec.license = 'MIT'
13
+
14
+ spec.files = `git ls-files`.split($/)
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ['lib']
18
+
19
+ spec.add_dependency 'capistrano', '>= 3.0.0.pre'
20
+ spec.add_dependency 'dotenv', '>= 2.0.1'
21
+ end
@@ -0,0 +1 @@
1
+ require File.expand_path("#{File.dirname(__FILE__)}/capistrano/uploads")
@@ -0,0 +1,8 @@
1
+ namespace(:uploads) do
2
+ desc "Sync uploads folder"
3
+ task :sync do
4
+ on roles(:db) do
5
+ download! "#{shared_path}/web/app/uploads", "web/app", recursive: true
6
+ end
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bedrock-capistrano-uploads
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Fredrik Sundström
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0.pre
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0.pre
27
+ - !ruby/object:Gem::Dependency
28
+ name: dotenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.1
41
+ description: Uploads tasks for roots/bedrock, using Capistrano 3.x
42
+ email:
43
+ - fredrik.sundstrom@norkay.se
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - LICENSE
52
+ - README.md
53
+ - bedrock-capistrano-uploads.gemspec
54
+ - lib/bedrock-capistrano-uploads.rb
55
+ - lib/capistrano/uploads.rb
56
+ homepage: https://github.com/norkay/bedrock-capistrano-uploads
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 2.4.5
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: Uploads tasks for roots/bedrock, using Capistrano 3.x
80
+ test_files: []