geordi 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/apache-site CHANGED
@@ -1,2 +1,4 @@
1
- #!/bin/sh
2
- sudo a2dissite \*; sudo a2ensite default $1 && sudo apache2ctl restart
1
+ #!/usr/bin/env ruby
2
+
3
+ site = ARGV[0]
4
+ exec "sudo a2dissite \*; sudo a2ensite default #{site} && sudo apache2ctl restart"
@@ -1,11 +1,5 @@
1
- #!/bin/sh
2
- if ls vendor/gems/*/*.gemspec > /dev/null 2>&1; then
3
- tar cf tmp/gemfiles_for_remote_install Gemfile Gemfile.lock vendor/gems/*/*.gemspec
4
- else
5
- tar cf tmp/gemfiles_for_remote_install Gemfile Gemfile.lock
6
- fi
7
- scp tmp/gemfiles_for_remote_install $1:~
8
- stty_orig=`stty -g`
9
- stty -echo
10
- ssh -t $1 "mkdir /tmp/install_gems; mv gemfiles_for_remote_install /tmp/install_gems; cd /tmp/install_gems; tar xf gemfiles_for_remote_install; bundle install; rm -rf /tmp/install_gems"
11
- stty $stty_orig
1
+ #!/usr/bin/env ruby
2
+
3
+ # we need to port this to Ruby
4
+ exec "#{$0}.sh", *ARGV
5
+
@@ -0,0 +1,11 @@
1
+ #!/bin/sh
2
+ if ls vendor/gems/*/*.gemspec > /dev/null 2>&1; then
3
+ tar cf tmp/gemfiles_for_remote_install Gemfile Gemfile.lock vendor/gems/*/*.gemspec
4
+ else
5
+ tar cf tmp/gemfiles_for_remote_install Gemfile Gemfile.lock
6
+ fi
7
+ scp tmp/gemfiles_for_remote_install $1:~
8
+ stty_orig=`stty -g`
9
+ stty -echo
10
+ ssh -t $1 "mkdir /tmp/install_gems; mv gemfiles_for_remote_install /tmp/install_gems; cd /tmp/install_gems; tar xf gemfiles_for_remote_install; bundle install; rm -rf /tmp/install_gems"
11
+ stty $stty_orig
data/bin/power-deploy CHANGED
@@ -1,3 +1,4 @@
1
- #!/bin/sh
2
- cap $1 deploy && cap $1 deploy:migrate && cap $1 deploy:restart
1
+ #!/usr/bin/env ruby
3
2
 
3
+ stage = ARGV[0]
4
+ exec "cap #{stage} deploy && cap #{stage} deploy:migrate && cap #{stage} deploy:restart"
data/bin/power-rake CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- for env in ['development', 'test', 'cucumber', 'performance']
3
+ for env in %w[development test cucumber performance]
4
4
  if File.exists? "config/environments/#{env}.rb"
5
5
  call = ['rake'] + ARGV + ["RAILS_ENV=#{env}"]
6
6
  puts call.join(' ')
@@ -1,10 +1,8 @@
1
- #!/bin/sh
2
-
3
- echo "Removing execute flags:"
4
- for pattern in *.rb *.html *.erb *.haml *.yml *.css *.sass *.rake *.png *.jpg *.gif *.pdf *.txt *.rdoc Rakefile VERSION README Capfile
5
- do
6
- echo "- $pattern"
7
- find . -name "$pattern" -exec chmod -x {} \;
8
- done
9
- echo "Done."
1
+ #!/usr/bin/env ruby
10
2
 
3
+ puts "Removing execute flags:"
4
+ for pattern in %w[*.rb *.html *.erb *.haml *.yml *.css *.sass *.rake *.png *.jpg *.gif *.pdf *.txt *.rdoc Rakefile VERSION README Capfile]
5
+ puts "- #{pattern"
6
+ `find . -name "#{pattern}" -exec chmod -x {} \;
7
+ end
8
+ puts "Done."
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
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: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch
@@ -27,6 +27,7 @@ executables:
27
27
  - b
28
28
  - dumple
29
29
  - install-gems-remotely
30
+ - install-gems-remotely.sh
30
31
  - power-deploy
31
32
  - power-rake
32
33
  - remotify-local-branch
@@ -45,6 +46,7 @@ files:
45
46
  - bin/b
46
47
  - bin/dumple
47
48
  - bin/install-gems-remotely
49
+ - bin/install-gems-remotely.sh
48
50
  - bin/power-deploy
49
51
  - bin/power-rake
50
52
  - bin/remotify-local-branch