monupco-openshift-ruby 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+
6
+ *~
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in monupco-openshift-ruby.gemspec
4
+ gemspec
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
+
@@ -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>
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "monupco-openshift-ruby"
4
+
5
+ Monupco::Openshift.new.cli
@@ -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,5 @@
1
+ module Monupco
2
+ class Openshift
3
+ VERSION = "0.0.9"
4
+ end
5
+ 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
+