pave 0.8.0 → 0.9.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: 982c8127326f896d97483645e3c195e354216bff
4
- data.tar.gz: 88fe18805a10b570cb610b140f5da01e5bf3f463
3
+ metadata.gz: 614ab26bd643c762af9a70061e85247b7fa547ae
4
+ data.tar.gz: 6e83c061cefa13fd0e5ad7ad40a20da22acf7c77
5
5
  SHA512:
6
- metadata.gz: b2a5e62598e82635699007121141a77e674dbe50056c9331896733616750c91605ec195f75d8db7bfe5ed9452a85c288090af8c4c790126013b46625e39fd839
7
- data.tar.gz: 454720859d23c96b172f122f993179a210b85d3ce59007d16f0da4728187dbd4c453f0f2c9662f5050b928b61d533e8d4b388366c9bb7cb21f5beca48c6df45d
6
+ metadata.gz: 6ff74d448b97f49794e2a5b461d619afecfbcc70a7e0ca2948f91c41994be7b4a29dff3511deb0fc4a9350d80304a1b820362405ff9186fefc21dd5cb725db9f
7
+ data.tar.gz: 11141270ef0d63e9afd4dc773f561a84ee11ccedc3de1aad3ba0fa765dd58a9ae654aba8e0058ffea625e9eb37c5b8b3f295a7056942026aa6072746912afdb9
data/bin/pave CHANGED
@@ -205,6 +205,15 @@ command :"db:push" do |c|
205
205
  end
206
206
  end
207
207
 
208
+ command :"files:cache:clear" do |c|
209
+ c.syntax = "pave cache:clear"
210
+ c.description = "Empty the project's files/cache and files/tmp directories."
211
+ c.action do
212
+ Pave::Files.clear_cache
213
+ end
214
+ end
215
+ alias_command :"cache:clear", :"files:cache:clear"
216
+
208
217
  command :"files:pull" do |c|
209
218
  c.syntax = "pave files:pull"
210
219
  c.description = "Download the project's live files directory."
data/lib/pave/files.rb CHANGED
@@ -2,7 +2,12 @@ module Pave
2
2
  class Files
3
3
  include Pave::Shell
4
4
 
5
+ def self.clear_cache
6
+ sh "rm -rf ./files/tmp/*; rm -rf ./files/cache/*;"
7
+ end
8
+
5
9
  def self.push(remote="live")
10
+ clear_cache
6
11
  server = Pave::Remote.server(remote)
7
12
  directory = Pave::Remote.directory(remote)
8
13
  sh "scp -r ./files #{server}:#{directory}/local_files;"
@@ -17,6 +22,7 @@ module Pave
17
22
  sh "scp -r #{server}:#{directory}/files ./remote_files;
18
23
  mv ./files ./old_files;
19
24
  mv ./remote_files ./files && rm -rf ./old_files;"
25
+ clear_cache
20
26
  end
21
27
  end
22
28
  end
data/lib/pave/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pave
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
data/pave.gemspec CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency("bundler", "~> 1.3")
22
- spec.add_development_dependency("rdoc")
23
- spec.add_development_dependency("rake", "~> 0.9.2")
22
+ spec.add_development_dependency("rdoc", "~> 4.1")
23
+ spec.add_development_dependency("rake", "~> 10.1")
24
24
  spec.add_development_dependency("rspec", "~> 2")
25
- spec.add_dependency("commander", "~> 4.1.5")
25
+ spec.add_dependency("commander", "~> 4.1")
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren
@@ -29,30 +29,30 @@ dependencies:
29
29
  name: rdoc
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: '4.1'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: '4.1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.9.2
48
+ version: '10.1'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 0.9.2
55
+ version: '10.1'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -73,14 +73,14 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 4.1.5
76
+ version: '4.1'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 4.1.5
83
+ version: '4.1'
84
84
  description: Provides a set of command line tools for Concrete5.
85
85
  email:
86
86
  - jamon@clearsightstudio.com