outpace_cli 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +9 -9
- data/README.rdoc +2 -8
- data/VERSION +1 -1
- data/lib/outpace.rb +32 -0
- data/outpace_cli.gemspec +64 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTY1MmQ2NzQ2YTQ5NTk1YmZlNzc3NmJiMTYxMDc0YmQyYzNiZmY0NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
-
|
6
|
+
NWFjMDdjMDljNjE5MjQzMTE5ODRlODBjOTNmZGY5YWQzNjBmNWQ3Ng==
|
7
|
+
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTEzOWU4ZDE0ZGE0MmZkMWNkOGFlM2ZkMTg4YzY5OWI4OTMzMDExZjQ5ZjNl
|
10
|
+
MzNkY2MwNzBkODU1NjM0NGNhNzc2ZWI1YTY1MTdlYTFhY2I5NzJjZTkxMzQ5
|
11
|
+
MmU0MTY1M2YwZjM4ZThlYWIzZmZkYzk0MDg4ODYyYTk5ZTg3ODA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzA1Mzc3YWQ2ZTJkMjA2M2U0YzBlNmVkMGMwZjAzYmEwY2MzMmZhYWRjZjE1
|
14
|
+
NjQ5MGJiOWIyNDI4NjM2NjliN2VlMDkwMTlhNzYwMDIxMDYxZmUwMzU5NGM2
|
15
|
+
ODI3NjI4NzliOGJmOWY2MDY1MmZiNTYzMGZiMTBhMjNjYjRhZDY=
|
data/README.rdoc
CHANGED
@@ -4,14 +4,8 @@ Gem for starting/stopping/testing/etc outpace projects / services / libraries
|
|
4
4
|
|
5
5
|
|
6
6
|
== Contributing to outpace_cli
|
7
|
-
|
8
|
-
*
|
9
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
10
|
-
* Fork the project.
|
11
|
-
* Start a feature/bugfix branch.
|
12
|
-
* Commit and push until you are happy with your contribution.
|
13
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
14
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
7
|
+
|
8
|
+
* DO IT!
|
15
9
|
|
16
10
|
== Copyright
|
17
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/outpace.rb
CHANGED
@@ -9,4 +9,36 @@ class Outpace
|
|
9
9
|
You need to run derp authenticate again, your authentication seems to have expired
|
10
10
|
AWS
|
11
11
|
end
|
12
|
+
|
13
|
+
def self.clojure_profile
|
14
|
+
case ENV['ENVIRONMENT_NAME']
|
15
|
+
when 'prod' then 'production'
|
16
|
+
when /^qa/ then 'qa'
|
17
|
+
when /dev/, nil then 'dev'
|
18
|
+
else raise "Unrecognized $ENVIRONMENT_NAME: #{ENV['ENVIRONMENT_NAME'].inspect}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.run_jar_with_new_relic(service, jar_file)
|
23
|
+
ENV["NEW_RELIC_LOG"] = "#{service}.log"
|
24
|
+
jvm_opts = []
|
25
|
+
|
26
|
+
case clojure_profile
|
27
|
+
when 'production'
|
28
|
+
ENV["NEW_RELIC_APP_NAME"] = service
|
29
|
+
jvm_opts << "-Dnewrelic.environment=production"
|
30
|
+
jvm_opts << "-javaagent:../clojure/newrelic/newrelic.jar"
|
31
|
+
when 'qa' then "_qa"
|
32
|
+
ENV["NEW_RELIC_APP_NAME"] = "#{service}_qa"
|
33
|
+
jvm_opts << "-Dnewrelic.environment=qa"
|
34
|
+
when 'dev'
|
35
|
+
ENV["NEW_RELIC_APP_NAME"] = "#{service}_dev"
|
36
|
+
jvm_opts << "-Dnewrelic.environment=development"
|
37
|
+
end
|
38
|
+
|
39
|
+
puts "Starting #{service}"
|
40
|
+
cmd = (["java"] + jvm_opts + ["-jar", jar_file]).join(" ")
|
41
|
+
puts "Executing #{cmd}"
|
42
|
+
exec cmd
|
43
|
+
end
|
12
44
|
end
|
data/outpace_cli.gemspec
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: outpace_cli 0.2.0 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "outpace_cli"
|
9
|
+
s.version = "0.2.0"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["Jeremy Lightsmith"]
|
14
|
+
s.date = "2014-08-02"
|
15
|
+
s.description = "Gem for starting/stopping/testing/etc outpace projects / services / libraries"
|
16
|
+
s.email = "jeremy@outpace.com"
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.rdoc"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"lib/outpace.rb",
|
30
|
+
"lib/outpace_cli.rb",
|
31
|
+
"outpace_cli.gemspec",
|
32
|
+
"test/helper.rb",
|
33
|
+
"test/test_outpace_cli.rb"
|
34
|
+
]
|
35
|
+
s.homepage = "http://github.com/outpace/outpace_cli"
|
36
|
+
s.licenses = ["MIT"]
|
37
|
+
s.rubygems_version = "2.2.2"
|
38
|
+
s.summary = "Outpace Command Line Helpers"
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
s.specification_version = 4
|
42
|
+
|
43
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
45
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
46
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
47
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
48
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
51
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
52
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
53
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
54
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
55
|
+
end
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
58
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
59
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
60
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
61
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: outpace_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Lightsmith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- VERSION
|
98
98
|
- lib/outpace.rb
|
99
99
|
- lib/outpace_cli.rb
|
100
|
+
- outpace_cli.gemspec
|
100
101
|
- test/helper.rb
|
101
102
|
- test/test_outpace_cli.rb
|
102
103
|
homepage: http://github.com/outpace/outpace_cli
|
@@ -119,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
120
|
version: '0'
|
120
121
|
requirements: []
|
121
122
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.2.2
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: Outpace Command Line Helpers
|