monupco-openshift-ruby 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +44 -0
- data/Rakefile +1 -0
- data/bin/monupco-openshift +5 -0
- data/lib/monupco-openshift-ruby.rb +15 -0
- data/lib/monupco-openshift-ruby/version.rb +5 -0
- data/monupco-openshift-ruby.gemspec +24 -0
- metadata +89 -0
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Copyright (c) 2012, Svetlozar Argirov <zarrro [AT] gmail.com>
|
2
|
+
Copyright (c) 2012, Alexander Todorov <atodorov [AT] otb.bg>
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
12
|
+
all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20
|
+
THE SOFTWARE.
|
21
|
+
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
Registration agent for monupco.com, preconfigured for OpenShift / Ruby
|
2
|
+
applications.
|
3
|
+
|
4
|
+
It compiles a list of installed packages and sends it to monupco.com.
|
5
|
+
|
6
|
+
Installing on your OpenShift Ruby application
|
7
|
+
-----------------------------------------------------
|
8
|
+
|
9
|
+
- Create an account at http://monupco.com
|
10
|
+
|
11
|
+
- Create your Ruby application in OpenShift
|
12
|
+
|
13
|
+
rhc app create -a myapp -t ruby-1.8
|
14
|
+
|
15
|
+
- Add a dependency in your application's Gemfile
|
16
|
+
|
17
|
+
...
|
18
|
+
gem 'monupco-openshift-ruby'
|
19
|
+
...
|
20
|
+
|
21
|
+
- Set your userID in the ./data/MONUPCO_SETTINGS file
|
22
|
+
|
23
|
+
echo "export MONUPCO_USER_ID=YourUserID" > ./data/MONUPCO_SETTINGS
|
24
|
+
|
25
|
+
- Enable the registration script in .openshift/action_hooks/post_deploy
|
26
|
+
|
27
|
+
cd $OPENSHIFT_REPO_DIR
|
28
|
+
source data/MONUPCO_SETTINGS
|
29
|
+
bundle exec vendor/bundle/ruby/1.8/bin/monupco-openshift
|
30
|
+
|
31
|
+
- Run bundle install to install the monupco gems
|
32
|
+
|
33
|
+
bundle install
|
34
|
+
|
35
|
+
- Commit your changes
|
36
|
+
|
37
|
+
git add .
|
38
|
+
git commit -m "enable monupco registration"
|
39
|
+
|
40
|
+
- Then push your application to OpenShift
|
41
|
+
|
42
|
+
git push
|
43
|
+
|
44
|
+
That's it, you can now check your application statistics at <http://monupco.com>
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "common-ruby-monupco"
|
2
|
+
|
3
|
+
module Monupco
|
4
|
+
class Openshift < Monupco::MonupcoBase
|
5
|
+
configure({
|
6
|
+
'user_id' => ENV['MONUPCO_USER_ID'],
|
7
|
+
'app_name' => ENV['OPENSHIFT_GEAR_NAME'],
|
8
|
+
'app_uuid' => ENV['OPENSHIFT_GEAR_UUID'],
|
9
|
+
'app_type' => ENV['OPENSHIFT_GEAR_TYPE'],
|
10
|
+
'app_url' => "http://#{ENV['OPENSHIFT_APP_DNS']}/",
|
11
|
+
'app_vendor' => 0,
|
12
|
+
'url' => ENV['MONUPCO_REGISTER_URL'],
|
13
|
+
})
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "monupco-openshift-ruby/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "monupco-openshift-ruby"
|
7
|
+
s.version = Monupco::Openshift::VERSION
|
8
|
+
s.authors = ["Svetlozar Argirov"]
|
9
|
+
s.email = ["zarrro@gmail.com"]
|
10
|
+
s.homepage = "http://github.com/monupco/monupco-openshift-ruby"
|
11
|
+
s.summary = %q{monupco.com client for OpenShift / Ruby applications}
|
12
|
+
s.description = %q{monupco.com client for OpenShift / Ruby applications. See the README for Usage.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "monupco-openshift-ruby"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
# s.add_development_dependency "rspec"
|
23
|
+
s.add_runtime_dependency "common-ruby-monupco"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: monupco-openshift-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Svetlozar Argirov
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-05-04 00:00:00 +03:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: common-ruby-monupco
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
description: monupco.com client for OpenShift / Ruby applications. See the README for Usage.
|
36
|
+
email:
|
37
|
+
- zarrro@gmail.com
|
38
|
+
executables:
|
39
|
+
- monupco-openshift
|
40
|
+
extensions: []
|
41
|
+
|
42
|
+
extra_rdoc_files: []
|
43
|
+
|
44
|
+
files:
|
45
|
+
- .gitignore
|
46
|
+
- Gemfile
|
47
|
+
- LICENSE
|
48
|
+
- README.md
|
49
|
+
- Rakefile
|
50
|
+
- bin/monupco-openshift
|
51
|
+
- lib/monupco-openshift-ruby.rb
|
52
|
+
- lib/monupco-openshift-ruby/version.rb
|
53
|
+
- monupco-openshift-ruby.gemspec
|
54
|
+
has_rdoc: true
|
55
|
+
homepage: http://github.com/monupco/monupco-openshift-ruby
|
56
|
+
licenses: []
|
57
|
+
|
58
|
+
post_install_message:
|
59
|
+
rdoc_options: []
|
60
|
+
|
61
|
+
require_paths:
|
62
|
+
- lib
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
81
|
+
requirements: []
|
82
|
+
|
83
|
+
rubyforge_project: monupco-openshift-ruby
|
84
|
+
rubygems_version: 1.3.7
|
85
|
+
signing_key:
|
86
|
+
specification_version: 3
|
87
|
+
summary: monupco.com client for OpenShift / Ruby applications
|
88
|
+
test_files: []
|
89
|
+
|