hudson 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/hudson ADDED
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env ruby
2
+ require 'hudson'
3
+ require 'un'
4
+ require 'optparse'
5
+
6
+
7
+ options = {
8
+ :port => 3001
9
+ }
10
+ args = ARGV.dup
11
+
12
+ opts = OptionParser.new do |opts|
13
+ opts.banner = "Usage: hudson [options] DIR"
14
+
15
+ opts.on("-p", "--port [3001]", "Run Hudson on specified port ") do |port|
16
+ options[:port] = port
17
+ end
18
+
19
+ opts.on_tail("-h", "--help") do
20
+ puts opts
21
+ exit
22
+ end
23
+
24
+ end
25
+ opts.parse!(args)
26
+ unless dir = args.shift
27
+ puts "hudson: no directory specified to house hudson"
28
+ puts opts
29
+ exit(1)
30
+ end
31
+ FileUtils.mkdir_p dir
32
+ FileUtils.cp_r Hudson::PLUGINS, dir
33
+ ENV['HUDSON_HOME'] = dir
34
+ exec("java", "-jar", Hudson::WAR, "--httpPort=#{options[:port]}")
35
+
data/lib/hudson.rb ADDED
@@ -0,0 +1,4 @@
1
+ module Hudson
2
+ WAR = File.expand_path(File.dirname(__FILE__) + "/hudson/hudson.war")
3
+ PLUGINS = File.expand_path(File.dirname(__FILE__) + "/hudson/plugins")
4
+ end
Binary file
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hudson
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Charles Lowell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-03-05 00:00:00 -06:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: cowboyd@thefrontside.net
18
+ executables:
19
+ - hudson
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - bin/hudson
26
+ - lib/hudson/hudson.war
27
+ - lib/hudson/plugins/git.hpi
28
+ - lib/hudson/plugins/github.hpi
29
+ - lib/hudson/plugins/rake.hpi
30
+ - lib/hudson/plugins/ruby.hpi
31
+ - lib/hudson.rb
32
+ has_rdoc: true
33
+ homepage:
34
+ licenses: []
35
+
36
+ post_install_message:
37
+ rdoc_options: []
38
+
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ version:
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "0"
52
+ version:
53
+ requirements: []
54
+
55
+ rubyforge_project:
56
+ rubygems_version: 1.3.5
57
+ signing_key:
58
+ specification_version: 3
59
+ summary: Run a Hudson continuous integration server
60
+ test_files: []
61
+