capdrupal 0.9.0 → 0.9.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.
data/README.markdown CHANGED
@@ -1,8 +1,8 @@
1
- # Capistrano Drupal
1
+ # Capdrupal
2
2
 
3
- This gem provides a number of tasks which are useful for deploying Drupal projects.
3
+ This gem provides a number of tasks which are useful for deploying Drupal projects with capistrano.
4
4
 
5
- Credit goes to railsless-deploy for many ideas here.
5
+ Credit goes to https://github.com/previousnext/capistrano-drupal for many ideas here.
6
6
 
7
7
  ## Installation
8
8
  These gems must be installed on your system first.
@@ -23,14 +23,14 @@ Finally install the capistrano-drupal recipes as a gem.
23
23
 
24
24
  ### From RubyGems.org
25
25
 
26
- $ gem install capistrano-drupal
26
+ $ gem install capdrupal
27
27
 
28
28
  ### From Github
29
29
 
30
- $ git clone git://github.com/antistatique/capistrano-drupal.git
31
- $ cd capistrano-drupal
32
- $ gem build capistrano-drupal.gemspec
33
- $ gem install capistrano-drupal-{version}.gem
30
+ $ git clone git://github.com/antistatique/capdrupal.git
31
+ $ cd capdrupal
32
+ $ gem build capdrupal.gemspec
33
+ $ gem install capdrupal-{version}.gem
34
34
 
35
35
  ## Usage
36
36
 
@@ -45,9 +45,3 @@ You should then be able to proceed as you would usually, you may want to familia
45
45
 
46
46
  $ cap -T
47
47
 
48
- ## Roadmap
49
-
50
- - Split out the tasks into indivual files/modules
51
- - Use drush aliases
52
- - Support install profiles
53
- - Support composer
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
data/capdrupal.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'capdrupal'
5
- s.version = '0.9.0'
5
+ s.version = '0.9.1'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.description = <<-DESC
8
8
  A set of tasks for deploying Drupal projects with Capistrano and the help of Drush.
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  "capdrupal.gemspec",
20
20
  "lib/capdrupal.rb"
21
21
  ]
22
- s.require_paths = 'lib'
22
+ s.require_path = 'lib'
23
23
 
24
24
  s.add_dependency 'capistrano', ">= 2.13.5","<= 2.15.4"
25
25
  s.add_dependency 'railsless-deploy', "~> 1.1.2"
data/lib/capdrupal.rb CHANGED
@@ -88,6 +88,25 @@ Capistrano::Configuration.instance(:must_exist).load do
88
88
  end
89
89
  end
90
90
 
91
+ namespace :files do
92
+ desc "Pull drupal sites files (from remote to local)"
93
+ task :pull, :roles => :app, :except => { :no_release => true } do
94
+ remote_files_dir = "#{current_path}/#{app_path}/sites/default/files/"
95
+ local_files_dir = "#{app_path}/sites/default/files/"
96
+
97
+ run_locally("rsync --recursive --times --rsh=ssh --compress --human-readable --progress #{user}@#{domain}:#{remote_files_dir} #{local_files_dir}")
98
+ end
99
+
100
+ desc "Push drupal sites files (from local to remote)"
101
+ task :push, :roles => :app, :except => { :no_release => true } do
102
+ remote_files_dir = "#{current_path}/#{app_path}/sites/default/files/"
103
+ local_files_dir = "#{app_path}/sites/default/files/"
104
+
105
+ run_locally("rsync --recursive --times --rsh=ssh --compress --human-readable --progress #{local_files_dir} #{user}@#{domain}:#{remote_files_dir}")
106
+
107
+ end
108
+ end
109
+
91
110
  namespace :git do
92
111
 
93
112
  desc "Place release tag into Git and push it to origin server."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capdrupal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -68,7 +68,8 @@ homepage: http://github.com/antistatique/capdrupal/
68
68
  licenses: []
69
69
  post_install_message:
70
70
  rdoc_options: []
71
- require_paths: lib
71
+ require_paths:
72
+ - lib
72
73
  required_ruby_version: !ruby/object:Gem::Requirement
73
74
  none: false
74
75
  requirements: