geordi 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -93,6 +93,15 @@ Installs all gems in your `Gemfile.lock`, as well as vendored gems, to the given
93
93
  More information at http://makandra.com/notes/692-install-a-local-gemfile-on-a-remote-server
94
94
 
95
95
 
96
+ migrate-all
97
+ ---------------------
98
+
99
+ Runs `power-rake db:migrate` if parallel_tests does not exist in your `Gemfile`. Otherwise it runs the migration
100
+ in your development environment and executes `b rake parallel:prepare` after that.
101
+
102
+ migrate-all
103
+
104
+
96
105
  power-deploy
97
106
  ------------
98
107
 
data/bin/apache-site CHANGED
@@ -1,4 +1,21 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  site = ARGV[0]
4
- exec "sudo a2dissite \*; sudo a2ensite default #{site} && sudo apache2ctl restart"
4
+ old_cwd = Dir.pwd
5
+ Dir.chdir "/etc/apache2/sites-available/"
6
+
7
+ # show available sites if no site was passed as argument
8
+ unless site
9
+ puts 'ERROR: Argument site is missing.'
10
+ puts 'Please call: apache-site my-site'
11
+ puts
12
+ puts 'Available sites:'
13
+ Dir.new(".").each do |file|
14
+ puts "- #{file}" if file != '.' && file != '..'
15
+ end
16
+ exit
17
+ end
18
+
19
+ has_default = File.exists?("default")
20
+ exec "sudo a2dissite \*; sudo a2ensite #{"default " if has_default}#{site} && sudo apache2ctl restart"
21
+ Dir.chdir old_cwd
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-18 00:00:00 +02:00
18
+ date: 2011-10-27 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21