broham 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'broham'
4
+ require 'broham/script'
5
+
6
+ Broham.get_cluster_settings
7
+ Broham.get_command_line_args :role_name
8
+ role_name = Settings[:role_name]
9
+
10
+ $stderr.puts %Q{Retrieving all hosts like '#{role_name}'}
11
+ resp = Broham.hosts_like role_name
12
+ $stderr.puts resp.map(&:to_pretty_json)
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'broham'
4
+ require 'broham/script'
5
+
6
+ Broham.get_cluster_settings
7
+ Broham.get_command_line_args :role_name
8
+ role_name = Settings[:role_name]
9
+
10
+ $stderr.puts %Q{Retrieving all hosts like '#{role_name}'}
11
+ resp = Broham.hosts_like role_name
12
+ $stderr.puts resp.map(&:to_pretty_json)
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{broham}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Philip (flip) Kromer"]
12
- s.date = %q{2010-04-09}
12
+ s.date = %q{2010-04-14}
13
13
  s.description = %q{Bro! Broham always knows where his bros are, bro. Using broham, a newly-created cloud machine can annouce its availability for a certain role ("nfs_server" or "db_slave-2"), allowing any other interested nodes to discover its public_ip, private_ip, etc. See also: http://j.mp/amongbros}
14
14
  s.email = %q{flip@infochimps.org}
15
- s.executables = ["broham", "broham-diss", "broham-fuck_all_yall", "broham-host", "broham-register", "broham-register_as_next", "broham-sup", "broham-unregister", "broham-unregister-like", "broham-yo"]
15
+ s.executables = ["broham", "broham-diss", "broham-fuck_all_yall", "broham-host", "broham-hosts_like", "broham-register", "broham-register_as_next", "broham-sup", "broham-sup_yall", "broham-unregister", "broham-unregister-like", "broham-yo"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.textile"
@@ -28,9 +28,11 @@ Gem::Specification.new do |s|
28
28
  "bin/broham-diss",
29
29
  "bin/broham-fuck_all_yall",
30
30
  "bin/broham-host",
31
+ "bin/broham-hosts_like",
31
32
  "bin/broham-register",
32
33
  "bin/broham-register_as_next",
33
34
  "bin/broham-sup",
35
+ "bin/broham-sup_yall",
34
36
  "bin/broham-unregister",
35
37
  "bin/broham-unregister-like",
36
38
  "bin/broham-yo",
@@ -1,5 +1,6 @@
1
- class Broham < RightAws::ActiveSdb::Base
1
+ require 'json'
2
2
 
3
+ class Broham < RightAws::ActiveSdb::Base
3
4
  def self.get_cluster_settings
4
5
  Configliere.use :commandline, :config_file
5
6
  Settings.read('broham.yaml')
@@ -20,5 +21,4 @@ class Broham < RightAws::ActiveSdb::Base
20
21
  exit(-1)
21
22
  end
22
23
  end
23
-
24
24
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philip (flip) Kromer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-09 00:00:00 -05:00
17
+ date: 2010-04-14 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -50,9 +50,11 @@ executables:
50
50
  - broham-diss
51
51
  - broham-fuck_all_yall
52
52
  - broham-host
53
+ - broham-hosts_like
53
54
  - broham-register
54
55
  - broham-register_as_next
55
56
  - broham-sup
57
+ - broham-sup_yall
56
58
  - broham-unregister
57
59
  - broham-unregister-like
58
60
  - broham-yo
@@ -72,9 +74,11 @@ files:
72
74
  - bin/broham-diss
73
75
  - bin/broham-fuck_all_yall
74
76
  - bin/broham-host
77
+ - bin/broham-hosts_like
75
78
  - bin/broham-register
76
79
  - bin/broham-register_as_next
77
80
  - bin/broham-sup
81
+ - bin/broham-sup_yall
78
82
  - bin/broham-unregister
79
83
  - bin/broham-unregister-like
80
84
  - bin/broham-yo