theme-juice 0.14.0 → 0.15.0

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: b1b967ed98fbadf66564f9084cb66a47e4c32573
4
- data.tar.gz: 86e70617bb1137eb761f1d669dc3a44c24fe8334
3
+ metadata.gz: bc9f5f43c93ff5eb88affc110a83189271692ef3
4
+ data.tar.gz: f9990180256f556f432288ea9a6a891a23c6ae84
5
5
  SHA512:
6
- metadata.gz: b8c892a3e15b552ca5cf90e4026994437881f7f64f9ddace30b71bb0636075730d38f44b16e33ff843fa692875089a4c2519861b3c49f4a3a154bd964c3e3ac1
7
- data.tar.gz: 65b912fa74bb0d166f6003b9edeac4e55dd708219a46e7db2c64bc93f168dfea43934cf71d5d5375e529c3b34e835658aed525b7a531419010a7c4152b05696f
6
+ metadata.gz: 4ca6c2ae7933ec894ce5f09d70bd70cf4c506fdc7819887b2203b62d37e2007eec9334e86524241c9879a61b42a29bf00728e8f397105f4a064ab7c4bfe6b60b
7
+ data.tar.gz: e4480e92a7f07ea34136606c07efd8c39027d20719f49a707ddeb78ffaf8b99b589f080bd32b5f13a3000ece57ec2563b5412cd969230099d38ab6305ce82b05
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "TJ\-DEPLOY" "1" "August 2015" "" "Theme Juice Manual"
4
+ .TH "TJ\-DEPLOY" "1" "September 2015" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\-deploy\fR \- Deploy a project
@@ -80,6 +80,14 @@ Pull the current \fBstage\fR\'s uploads folder from the passed \fBstage\fR to th
80
80
  \fBuploads:push\fR
81
81
  Push the uploads folder from the development environment to the passed \fBstage\fR\'s uploads folder
82
82
  .
83
+ .TP
84
+ \fBfile:pull\fR=\fIfile\fR
85
+ Pull an arbitrary relative file from the passed \fBstage\fR to the development environment\.
86
+ .
87
+ .TP
88
+ \fBfile:push\fR=\fIfile\fR
89
+ Push an arbitrary relative file from the development environment to the passed \fBstage\fR\.
90
+ .
83
91
  .SH "CONFIG FILE"
84
92
  The YAML Juicefile(5) configuration may be used to store deployment\-related settings\. Below you will find the various block sequences you may use to define your project\'s deployment settings\. All of these will be passed to capistrano(1) to invoke a deployment\.
85
93
  .
@@ -72,6 +72,14 @@ SECONDARY COMMANDS
72
72
  Push the uploads folder from the development environment to the
73
73
  passed stage's uploads folder
74
74
 
75
+ file:pull=file
76
+ Pull an arbitrary relative file from the passed stage to the
77
+ development environment.
78
+
79
+ file:push=file
80
+ Push an arbitrary relative file from the development environment
81
+ to the passed stage.
82
+
75
83
  CONFIG FILE
76
84
  The YAML Juicefile(5) configuration may be used to store deploy-
77
85
  ment-related settings. Below you will find the various block sequences
@@ -161,4 +169,4 @@ CONFIG FILE
161
169
 
162
170
 
163
171
 
164
- August 2015 TJ-DEPLOY(1)
172
+ September 2015 TJ-DEPLOY(1)
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+
3
+ namespace :file do
4
+
5
+ desc "Push file to remote"
6
+ task :push, [:file] do |t, args|
7
+ on roles(:app) do
8
+ if File.exist? args[:file]
9
+ upload! args[:file], release_path.join(args[:file])
10
+ else
11
+ error "Could not locate local file '#{args[:file]}'"
12
+ end
13
+ end
14
+ end
15
+
16
+ desc "Pull file from remote"
17
+ task :pull, [:file] do |t, args|
18
+ on roles(:app) do
19
+ download! release_path.join(args[:file]), args[:file]
20
+ end
21
+ end
22
+ end
@@ -29,7 +29,7 @@ module ThemeJuice
29
29
  @io.log "Loading Capistrano tasks"
30
30
 
31
31
  tasks_dir = "#{File.dirname(__FILE__)}/capistrano"
32
- tasks = %w[db uploads env rsync]
32
+ tasks = %w[db uploads file env rsync]
33
33
 
34
34
  tasks.each { |task| load "#{tasks_dir}/#{task}.rb" }
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.14.0"
4
+ VERSION = "0.15.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
@@ -159,6 +159,7 @@ files:
159
159
  - lib/theme-juice/tasks/apache.rb
160
160
  - lib/theme-juice/tasks/capistrano/db.rb
161
161
  - lib/theme-juice/tasks/capistrano/env.rb
162
+ - lib/theme-juice/tasks/capistrano/file.rb
162
163
  - lib/theme-juice/tasks/capistrano/rsync.rb
163
164
  - lib/theme-juice/tasks/capistrano/uploads.rb
164
165
  - lib/theme-juice/tasks/create_confirm.rb