capistrano-theme-uploader 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 90304e1d89153e93ede3374a3270bb21c9aae903de0b4b4d241b1c6f1ef2d17e
4
+ data.tar.gz: d1bc88ae339e80d8e544956adc34f023f19fd09b05ea12a0ca58832a774c89ce
5
+ SHA512:
6
+ metadata.gz: d8654b272df6b432a63a0d70748a70a7050a9b6af046c2f9efcf2b799337ee5953582f1ee4bdbae0472c2f0679d131f0ccf5dc14507a3d8a5ec02f365f1c3165
7
+ data.tar.gz: cb45bb267715945bee6b7c6bb379c3ec0269155a569c4e7f0c0d23c92bcce161e978028824de792350d49332800fa41253bf2c569297e038acafe66a12797f8c
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/LICENCE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Troopers
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,37 @@
1
+ # capistrano-theme-uploader
2
+
3
+ Capistrano tasks used to deploy theme.
4
+
5
+ ## Install
6
+
7
+ ```ruby
8
+ #add this line in your Gemfile
9
+ gem 'capistrano-theme-uploader'
10
+ ```
11
+
12
+ ```ruby
13
+ #add this line in your Capfile
14
+ require 'capistrano/capistrano-theme-uploader'
15
+ ```
16
+ Then run
17
+ ```shell
18
+ bundle install
19
+ #or bundle update
20
+ ```
21
+ set following variables in your deploy.rb
22
+ These variables will be used to generate wp_config.php at first deployment.
23
+ And will install an empty wordpress
24
+ ```ruby
25
+ set :themes_to_deploy, [
26
+ 'wp-content/themes/my-theme'
27
+ ]
28
+
29
+ ```
30
+
31
+ ## Workflow
32
+
33
+ The default capistrano workflow is used with the addition of theses tasks.
34
+
35
+ ```ruby
36
+ after 'deploy:updating', 'wp-capistrano:upload_theme'
37
+ ```
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'capistrano-theme-uploader'
7
+ spec.version = '0.0.1'
8
+ spec.authors = ['Nicolas RENAULT']
9
+ spec.email = ['nrenault@tangkoko.com']
10
+ spec.description = %q{Laravel Mix tasks for Capistrano 3.x}
11
+ spec.summary = %q{Laravel Mix tasks for Capistrano 3.x}
12
+ spec.homepage = 'https://github.com/nicoren-tangkoko/capistrano-theme-uploader'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_dependency 'capistrano', '>= 3.0.0.pre'
21
+
22
+ spec.add_development_dependency 'bundler', '~> 2.1'
23
+ spec.add_development_dependency 'rake', '~> 13.0'
24
+ end
data/gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-bundler.gemspec
4
+ gemspec
File without changes
@@ -0,0 +1,7 @@
1
+ load File.expand_path("../tasks/upload_theme.rake", __FILE__)
2
+
3
+ namespace :load do
4
+ task :defaults do
5
+ load "capistrano/capistrano-theme-uploader/defaults.rb"
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ namespace :capistrano-theme-uploader do
2
+ desc 'upload theme compiled files'
3
+ task :upload_theme do
4
+ run_locally do
5
+ role_properties(:app) do |server|
6
+ ssh_options = server.ssh_options
7
+ fetch(:themes_to_deploy).each do |theme|
8
+ themesParentDir = theme.split("/")
9
+ themesParentDir.pop()
10
+ execute "scp -r -P #{server.ssh_options[:port]} #{ENV['SOURCE_PATH']}/#{fetch(:repo_tree)}/#{theme} #{server.user}@#{server.hostname}:#{release_path}/#{themesParentDir.join("/")}"
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,2 @@
1
+ # Default Flow
2
+ after 'deploy:updating', 'capistrano-theme-uploader:upload_theme'
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-theme-uploader
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nicolas RENAULT
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-03-31 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: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ description: Laravel Mix tasks for Capistrano 3.x
56
+ email:
57
+ - nrenault@tangkoko.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - LICENCE
64
+ - README.md
65
+ - Rakefile
66
+ - capistrano-theme-uploader.gemspec
67
+ - gemfile
68
+ - lib/capistrano-theme-uploader.rb
69
+ - lib/capistrano/capistrano-theme-uploader.rb
70
+ - lib/capistrano/tasks/deploy_theme.rake
71
+ - lib/capistrano/wp-capistrano/defaults.rb
72
+ homepage: https://github.com/nicoren-tangkoko/capistrano-theme-uploader
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubygems_version: 3.1.2
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: Laravel Mix tasks for Capistrano 3.x
95
+ test_files: []