kstrano 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/kstrano.rb +11 -0
  2. metadata +2 -2
data/lib/kstrano.rb CHANGED
@@ -37,6 +37,16 @@ namespace :files do
37
37
  end
38
38
  end
39
39
 
40
+ namespace :database do
41
+ namespace :move do
42
+ desc "DISABLED"
43
+ task :to_remote, :roles => :db, :only => { :primary => true } do
44
+ Kumastrano.say "This feature is DISABLED!"
45
+ exit
46
+ end
47
+ end
48
+ end
49
+
40
50
  namespace :kuma do
41
51
 
42
52
  namespace :ssh_socket do
@@ -222,6 +232,7 @@ end
222
232
  ## Fix the permissions of the latest release, so that it's readable for the project user
223
233
  before "deploy:finalize_update" do
224
234
  on_rollback { sudo "rm -rf #{release_path}; true" } # by default capistrano will use the run command, but everything has project user rights in our server setup, so use try_sudo in stead of run.
235
+ sudo "sh -c 'if [ ! -f #{release_path}/app/config/parameters.ini ] && [ ! -f #{release_path}/app/config/parameters.yml ] ; then if [ -f #{release_path}/paramDecode ] ; then chmod -R ug+rx #{latest_release}/paramDecode && cd #{release_path} && ./paramDecode; elif [ -f #{release_path}/param ] ; then chmod -R ug+rx #{latest_release}/param && cd #{release_path} && ./param decode; fi; fi'"
225
236
  sudo "chown -R #{application}:#{application} #{latest_release}"
226
237
  sudo "setfacl -R -m group:admin:rwx #{latest_release}"
227
238
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kstrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
12
+ date: 2013-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capifony