deployment_test 0.0.3 → 0.0.4
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.
- data/CHANGELOG.rdoc +3 -0
- data/Manifest +1 -0
- data/bin/deployment_test +25 -0
- data/deployment_test.gemspec +4 -3
- data/lib/deployment_test/version.rb +1 -1
- metadata +7 -4
data/CHANGELOG.rdoc
CHANGED
data/Manifest
CHANGED
data/bin/deployment_test
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'optparse'
|
4
|
+
require 'deployment_test'
|
5
|
+
|
6
|
+
options = {}
|
7
|
+
OptionParser.new do |opts|
|
8
|
+
opts.banner = "Usage: deployment_test [options]"
|
9
|
+
|
10
|
+
opts.on("-u", "--postgres-user-exist <username>", "Check for postgres user existance") do |v|
|
11
|
+
options[:class] = DeploymentTest::Postgres
|
12
|
+
options[:action] = :user_exist?
|
13
|
+
options[:params] = v
|
14
|
+
end
|
15
|
+
|
16
|
+
opts.on("-l", "--postgres-user-can-login <username,password>", "Check for postgres user can login") do |v|
|
17
|
+
options[:class] = DeploymentTest::Postgres
|
18
|
+
options[:action] = :user_can_login?
|
19
|
+
options[:params] = v.split(',')
|
20
|
+
end
|
21
|
+
|
22
|
+
end.parse!
|
23
|
+
|
24
|
+
exit 0 if options[:class].new.send(options[:action], options[:params])
|
25
|
+
exit 1
|
data/deployment_test.gemspec
CHANGED
@@ -2,15 +2,16 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{deployment_test}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [%q{Marcin Nowicki}]
|
9
9
|
s.date = %q{2011-12-12}
|
10
10
|
s.description = %q{Gem to perform common deployment testing}
|
11
11
|
s.email = %q{pr0d1r2@gmail.com}
|
12
|
-
s.
|
13
|
-
s.
|
12
|
+
s.executables = [%q{deployment_test}]
|
13
|
+
s.extra_rdoc_files = [%q{CHANGELOG.rdoc}, %q{README}, %q{bin/deployment_test}, %q{lib/deployment_test.rb}, %q{lib/deployment_test/postgres.rb}, %q{lib/deployment_test/version.rb}]
|
14
|
+
s.files = [%q{CHANGELOG.rdoc}, %q{Gemfile}, %q{Gemfile.lock}, %q{MIT-LICENSE}, %q{Manifest}, %q{README}, %q{Rakefile}, %q{bin/deployment_test}, %q{lib/deployment_test.rb}, %q{lib/deployment_test/postgres.rb}, %q{lib/deployment_test/version.rb}, %q{spec/deployment_test/postgres_spec.rb}, %q{deployment_test.gemspec}]
|
14
15
|
s.homepage = %q{https://github.com/doubledrones/deployment_test}
|
15
16
|
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Deployment_test}, %q{--main}, %q{README}]
|
16
17
|
s.require_paths = [%q{lib}]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deployment_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-12 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg
|
16
|
-
requirement: &
|
16
|
+
requirement: &70286759481160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,14 +21,16 @@ dependencies:
|
|
21
21
|
version: 0.11.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70286759481160
|
25
25
|
description: Gem to perform common deployment testing
|
26
26
|
email: pr0d1r2@gmail.com
|
27
|
-
executables:
|
27
|
+
executables:
|
28
|
+
- deployment_test
|
28
29
|
extensions: []
|
29
30
|
extra_rdoc_files:
|
30
31
|
- CHANGELOG.rdoc
|
31
32
|
- README
|
33
|
+
- bin/deployment_test
|
32
34
|
- lib/deployment_test.rb
|
33
35
|
- lib/deployment_test/postgres.rb
|
34
36
|
- lib/deployment_test/version.rb
|
@@ -40,6 +42,7 @@ files:
|
|
40
42
|
- Manifest
|
41
43
|
- README
|
42
44
|
- Rakefile
|
45
|
+
- bin/deployment_test
|
43
46
|
- lib/deployment_test.rb
|
44
47
|
- lib/deployment_test/postgres.rb
|
45
48
|
- lib/deployment_test/version.rb
|