engineyard-visualvm 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +12 -0
- data/lib/engineyard-visualvm/cli.rb +10 -0
- data/lib/engineyard-visualvm/version.rb +1 -1
- data/spec/engineyard-visualvm_spec.rb +16 -0
- metadata +3 -2
data/ChangeLog
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
2011-12-08 Nick Sieger <nick@nicksieger.com>
|
2
|
+
|
3
|
+
* (Changes): Release 0.5.1
|
4
|
+
|
5
|
+
* lib/engineyard-visualvm/cli.rb (EngineYard::VisualVM::Helpers):
|
6
|
+
Make #options method available if needed when Helpers is included
|
7
|
+
into an arbitrary class.
|
8
|
+
|
9
|
+
2011-12-02 Nick Sieger <nick@nicksieger.com>
|
10
|
+
|
11
|
+
* (Changes): Initial release (0.5.0)
|
12
|
+
|
@@ -14,6 +14,16 @@ require "engineyard/thor"
|
|
14
14
|
module EngineYard
|
15
15
|
module VisualVM
|
16
16
|
module Helpers
|
17
|
+
def self.included(base)
|
18
|
+
unless base.instance_methods.map(&:to_s).include?("options")
|
19
|
+
base.class_eval do
|
20
|
+
def options
|
21
|
+
@_opts ||= { :host => "localhost" }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
17
27
|
def self.port_available?(port)
|
18
28
|
begin
|
19
29
|
tcps = TCPServer.new("127.0.0.1", port)
|
@@ -6,6 +6,22 @@
|
|
6
6
|
|
7
7
|
require File.expand_path('../spec_helper', __FILE__)
|
8
8
|
|
9
|
+
describe EngineYard::VisualVM::Helpers do
|
10
|
+
context "when included in a class"
|
11
|
+
let(:object) do
|
12
|
+
clz = Class.new
|
13
|
+
clz.class_eval { include EngineYard::VisualVM::Helpers }
|
14
|
+
clz.new
|
15
|
+
end
|
16
|
+
|
17
|
+
it "can calculate JVM arguments" do
|
18
|
+
object.jvm_arguments.tap {|args|
|
19
|
+
args.should =~ /org\.jruby\.jmx\.agent/
|
20
|
+
args.should =~ /javaagent:.*agent\.jar/
|
21
|
+
}
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
9
25
|
describe EngineYard::VisualVM::CLI do
|
10
26
|
let(:script) { Class.new(EngineYard::VisualVM::CLI) }
|
11
27
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: engineyard-visualvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nick Sieger
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-12-08 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: childprocess
|
@@ -81,6 +81,7 @@ extra_rdoc_files: []
|
|
81
81
|
|
82
82
|
files:
|
83
83
|
- .gitignore
|
84
|
+
- ChangeLog
|
84
85
|
- Gemfile
|
85
86
|
- LICENSE.txt
|
86
87
|
- README.md
|