winton-ubistrano 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,31 +1,25 @@
1
+ require 'rubygems'
1
2
  require 'rake'
3
+ require 'rake/gempackagetask'
4
+ require 'spec/rake/spectask'
5
+ require 'gemspec'
2
6
 
3
- task :default => 'ubistrano.gemspec'
4
-
5
- file 'ubistrano.gemspec' => FileList['{example,lib,templates}/**','Rakefile'] do |f|
6
- # read spec file and split out manifest section
7
- spec = File.read(f.name)
8
- parts = spec.split(" # = MANIFEST =\n")
9
- fail 'bad spec' if parts.length != 3
10
- # determine file list from git ls-files
11
- files = `git ls-files`.
12
- split("\n").
13
- sort.
14
- reject{ |file| file =~ /^\./ }.
15
- reject { |file| file =~ /^doc/ }.
16
- map{ |file| " #{file}" }.
17
- join("\n")
18
- # piece file back together and write...
19
- parts[1] = " s.files = %w[\n#{files}\n ]\n"
20
- spec = parts.join(" # = MANIFEST =\n")
21
- File.open(f.name, 'w') { |io| io.write(spec) }
22
- puts "Updated #{f.name}"
7
+ desc "Generate gemspec"
8
+ task :gemspec do
9
+ File.open("#{Dir.pwd}/#{GEM_NAME}.gemspec", 'w') do |f|
10
+ f.write(GEM_SPEC.to_ruby)
11
+ end
23
12
  end
24
13
 
25
- # sudo rake install
14
+ desc "Install gem"
26
15
  task :install do
27
- `sudo gem uninstall ubistrano -x`
28
- `gem build ubistrano.gemspec`
29
- `sudo gem install ubistrano*.gem`
30
- `rm ubistrano*.gem`
16
+ Rake::Task['gem'].invoke
17
+ `sudo gem uninstall #{GEM_NAME} -x`
18
+ `sudo gem install pkg/#{GEM_NAME}*.gem`
19
+ `rm -Rf pkg`
20
+ end
21
+
22
+ desc "Package gem"
23
+ Rake::GemPackageTask.new(GEM_SPEC) do |pkg|
24
+ pkg.gem_spec = GEM_SPEC
31
25
  end
data/changelog.markdown CHANGED
@@ -1,3 +1,10 @@
1
+ Version 1.2.7
2
+ -------------
3
+
4
+ * More work on Sinatra tasks
5
+ * God init.d updates
6
+ * Better Rakefile
7
+
1
8
  Version 1.2.6
2
9
  -------------
3
10
 
data/gemspec.rb ADDED
@@ -0,0 +1,19 @@
1
+ GEM_NAME = 'ubistrano'
2
+ GEM_FILES = FileList['**/*'] - FileList['coverage', 'coverage/**/*', 'pkg', 'pkg/**/*']
3
+ GEM_SPEC = Gem::Specification.new do |s|
4
+ # == CONFIGURE ==
5
+ s.author = "Winton Welsh"
6
+ s.email = "mail@wintoni.us"
7
+ s.homepage = "http://github.com/winton/#{GEM_NAME}"
8
+ s.summary = "Provision and deploy to an Ubuntu/God/Apache/Passenger stack using Capistrano"
9
+ # == CONFIGURE ==
10
+ s.add_dependency('amazon-ec2', '=0.4.5')
11
+ s.executables << 'ubify'
12
+ s.extra_rdoc_files = [ "README.markdown" ]
13
+ s.files = GEM_FILES.to_a
14
+ s.has_rdoc = false
15
+ s.name = GEM_NAME
16
+ s.platform = Gem::Platform::RUBY
17
+ s.require_path = "lib"
18
+ s.version = "1.2.7"
19
+ end
data/lib/ubistrano.rb CHANGED
@@ -1,4 +1,5 @@
1
1
 
2
+ gem 'amazon-ec2', '=0.4.5'
2
3
  require 'EC2'
3
4
  require 'pp'
4
5
 
@@ -10,9 +10,9 @@ Capistrano::Configuration.instance(:must_exist).load do
10
10
  end
11
11
  end
12
12
 
13
- desc "Copies files in the shared config folder into our app"
13
+ desc "Copies yml files in the shared config folder into our app config"
14
14
  task :to_app, :roles => :app do
15
- run "cp -Rf #{shared_path}/config/* #{release_path}"
15
+ run "cp -Rf #{shared_path}/config/* #{release_path}/config"
16
16
  end
17
17
  end
18
18
  end
@@ -10,18 +10,18 @@ RETVAL=0
10
10
 
11
11
  case "$1" in
12
12
  start)
13
- /usr/local/bin/god -P /var/run/god.pid -l /var/log/god.log
14
- /usr/local/bin/god load /usr/local/etc/god.god
13
+ sudo /usr/local/bin/god -P /var/run/god.pid -l /var/log/god.log
14
+ sudo /usr/local/bin/god load /usr/local/etc/god.god
15
15
  RETVAL=$?
16
16
  ;;
17
17
  stop)
18
- kill `cat /var/run/god.pid`
18
+ sudo kill `cat /var/run/god.pid`
19
19
  RETVAL=$?
20
20
  ;;
21
21
  restart)
22
- kill `cat /var/run/god.pid`
23
- /usr/local/bin/god -P /var/run/god.pid -l /var/log/god.log
24
- /usr/local/bin/god load /usr/local/etc/god.god
22
+ sudo kill `cat /var/run/god.pid`
23
+ sudo /usr/local/bin/god -P /var/run/god.pid -l /var/log/god.log
24
+ sudo /usr/local/bin/god load /usr/local/etc/god.god
25
25
  RETVAL=$?
26
26
  ;;
27
27
  status)
data/ubistrano.gemspec CHANGED
@@ -1,50 +1,32 @@
1
+ # -*- encoding: utf-8 -*-
2
+
1
3
  Gem::Specification.new do |s|
2
- s.name = 'ubistrano'
3
- s.version = '1.2.6'
4
- s.date = '2008-06-27'
5
-
6
- s.summary = "Provision and deploy to an Ubuntu/God/Apache/Passenger stack using Capistrano"
7
- s.description = "Provision and deploy to an Ubuntu/God/Apache/Passenger stack using Capistrano"
8
-
9
- s.author = 'Winton Welsh'
10
- s.email = 'mail@wintoni.us'
11
- s.homepage = 'http://github.com/winton/ubistrano'
12
-
13
- s.add_dependency 'amazon-ec2', '>= 0.3.2'
4
+ s.name = %q{ubistrano}
5
+ s.version = "1.2.7"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Winton Welsh"]
9
+ s.date = %q{2009-06-28}
10
+ s.default_executable = %q{ubify}
11
+ s.email = %q{mail@wintoni.us}
14
12
  s.executables = ["ubify"]
15
- s.has_rdoc = false
16
-
17
- # = MANIFEST =
18
- s.files = %w[
19
- MIT-LICENSE
20
- README.markdown
21
- Rakefile
22
- bin/ubify
23
- changelog.markdown
24
- example/deploy.rb
25
- lib/ubistrano.rb
26
- lib/ubistrano/apache.rb
27
- lib/ubistrano/deploy.rb
28
- lib/ubistrano/ec2.rb
29
- lib/ubistrano/gems.rb
30
- lib/ubistrano/helpers.rb
31
- lib/ubistrano/log.rb
32
- lib/ubistrano/mysql.rb
33
- lib/ubistrano/rails.rb
34
- lib/ubistrano/sinatra.rb
35
- lib/ubistrano/ssh.rb
36
- lib/ubistrano/stage.rb
37
- lib/ubistrano/ubuntu.rb
38
- templates/apache/virtual_host.erb
39
- templates/log/rotate.conf.erb
40
- templates/rails/database.yml.erb
41
- templates/ubuntu/apache.god.erb
42
- templates/ubuntu/god.erb
43
- templates/ubuntu/god.god.erb
44
- templates/ubuntu/iptables.rules.erb
45
- templates/ubuntu/mysql.god.erb
46
- templates/ubuntu/sshd.god.erb
47
- ubistrano.gemspec
48
- ]
49
- # = MANIFEST =
50
- end
13
+ s.extra_rdoc_files = ["README.markdown"]
14
+ s.files = ["bin", "bin/ubify", "changelog.markdown", "example", "example/deploy.rb", "gemspec.rb", "lib", "lib/ubistrano", "lib/ubistrano/apache.rb", "lib/ubistrano/deploy.rb", "lib/ubistrano/ec2.rb", "lib/ubistrano/gems.rb", "lib/ubistrano/helpers.rb", "lib/ubistrano/log.rb", "lib/ubistrano/mysql.rb", "lib/ubistrano/rails.rb", "lib/ubistrano/sinatra.rb", "lib/ubistrano/ssh.rb", "lib/ubistrano/stage.rb", "lib/ubistrano/ubuntu.rb", "lib/ubistrano.rb", "MIT-LICENSE", "Rakefile", "README.markdown", "templates", "templates/apache", "templates/apache/virtual_host.erb", "templates/log", "templates/log/rotate.conf.erb", "templates/rails", "templates/rails/database.yml.erb", "templates/ubuntu", "templates/ubuntu/apache.god.erb", "templates/ubuntu/god.erb", "templates/ubuntu/god.god.erb", "templates/ubuntu/iptables.rules.erb", "templates/ubuntu/mysql.god.erb", "templates/ubuntu/sshd.god.erb", "ubistrano.gemspec"]
15
+ s.homepage = %q{http://github.com/winton/ubistrano}
16
+ s.require_paths = ["lib"]
17
+ s.rubygems_version = %q{1.3.1}
18
+ s.summary = %q{Provision and deploy to an Ubuntu/God/Apache/Passenger stack using Capistrano}
19
+
20
+ if s.respond_to? :specification_version then
21
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
+ s.specification_version = 2
23
+
24
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
+ s.add_runtime_dependency(%q<amazon-ec2>, ["= 0.4.5"])
26
+ else
27
+ s.add_dependency(%q<amazon-ec2>, ["= 0.4.5"])
28
+ end
29
+ else
30
+ s.add_dependency(%q<amazon-ec2>, ["= 0.4.5"])
31
+ end
32
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winton-ubistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winton Welsh
@@ -9,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-27 00:00:00 -07:00
13
- default_executable:
12
+ date: 2009-06-28 00:00:00 -07:00
13
+ default_executable: ubify
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: amazon-ec2
@@ -18,26 +18,27 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.3.2
23
+ version: 0.4.5
24
24
  version:
25
- description: Provision and deploy to an Ubuntu/God/Apache/Passenger stack using Capistrano
25
+ description:
26
26
  email: mail@wintoni.us
27
27
  executables:
28
28
  - ubify
29
29
  extensions: []
30
30
 
31
- extra_rdoc_files: []
32
-
33
- files:
34
- - MIT-LICENSE
31
+ extra_rdoc_files:
35
32
  - README.markdown
36
- - Rakefile
33
+ files:
34
+ - bin
37
35
  - bin/ubify
38
36
  - changelog.markdown
37
+ - example
39
38
  - example/deploy.rb
40
- - lib/ubistrano.rb
39
+ - gemspec.rb
40
+ - lib
41
+ - lib/ubistrano
41
42
  - lib/ubistrano/apache.rb
42
43
  - lib/ubistrano/deploy.rb
43
44
  - lib/ubistrano/ec2.rb
@@ -50,9 +51,18 @@ files:
50
51
  - lib/ubistrano/ssh.rb
51
52
  - lib/ubistrano/stage.rb
52
53
  - lib/ubistrano/ubuntu.rb
54
+ - lib/ubistrano.rb
55
+ - MIT-LICENSE
56
+ - Rakefile
57
+ - README.markdown
58
+ - templates
59
+ - templates/apache
53
60
  - templates/apache/virtual_host.erb
61
+ - templates/log
54
62
  - templates/log/rotate.conf.erb
63
+ - templates/rails
55
64
  - templates/rails/database.yml.erb
65
+ - templates/ubuntu
56
66
  - templates/ubuntu/apache.god.erb
57
67
  - templates/ubuntu/god.erb
58
68
  - templates/ubuntu/god.god.erb