katello-foreman-engine 0.0.2 → 0.0.3

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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "katello-foreman-engine"
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
4
4
 
5
5
  s.authors = ["Katello"]
6
6
  s.date = "2013-04-19"
@@ -13,7 +13,7 @@ module KatelloForemanEngine
13
13
  end
14
14
 
15
15
  def run
16
- Bindings.user_create(input['username'], input['email'])
16
+ Bindings.user_create(input['username'], input['email'], input['admin'])
17
17
  end
18
18
  end
19
19
  end
@@ -94,11 +94,12 @@ module KatelloForemanEngine
94
94
  find_resource(user(username), "login = #{username}")
95
95
  end
96
96
 
97
- def user_create(username, email)
97
+ def user_create(username, email, admin)
98
98
  user(username).create({ 'user' => {
99
99
  'login' => username,
100
100
  'mail' => email,
101
101
  'password' => Password.generate_random_string(25),
102
+ 'admin' => admin,
102
103
  'auth_source_id' => 1}})
103
104
  end
104
105
 
@@ -0,0 +1,3 @@
1
+ the rel-eng/packages directory contains metadata files
2
+ named after their packages. Each file has the latest tagged
3
+ version and the project's relative directory.
@@ -0,0 +1 @@
1
+ 0.0.3-1 /
@@ -0,0 +1,8 @@
1
+ [globalconfig]
2
+ default_builder = tito.builder.GemBuilder
3
+ default_tagger = tito.tagger.VersionTagger
4
+ changelog_do_not_remove_cherrypick = 0
5
+ changelog_format = %s (%ae)
6
+
7
+ [tagconfig]
8
+ require_package = ruby193-build
@@ -0,0 +1,92 @@
1
+ %{?scl:%scl_package rubygem-%{gem_name}}
2
+ %{!?scl:%global pkg_name %{name}}
3
+
4
+ %global gem_name katello-foreman-engine
5
+
6
+ %define rubyabi 1.9.1
7
+ %global katello_bundlerd_dir /usr/share/katello/bundler.d
8
+
9
+ Summary: Foreman specific parts of Katello
10
+ Name: %{?scl_prefix}rubygem-%{gem_name}
11
+ Version: 0.0.3
12
+ Release: 1%{?dist}
13
+ Group: Development/Libraries
14
+ License: GPLv2
15
+ URL: http://github.com/Katello/katello-foreman-engine
16
+ Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
17
+ Requires: katello
18
+ Requires: %{?scl_prefix}ruby(abi) >= %{rubyabi}
19
+ Requires: %{?scl_prefix}rubygem(foreman_api)
20
+ Requires: %{?scl_prefix}rubygems
21
+ BuildRequires: %{?scl_prefix}rubygems-devel
22
+ BuildRequires: %{?scl_prefix}ruby(abi) >= %{rubyabi}
23
+ BuildRequires: %{?scl_prefix}rubygems
24
+ BuildArch: noarch
25
+ Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
26
+
27
+ %description
28
+ Foreman specific parts of Katello.
29
+
30
+ %package doc
31
+ BuildArch: noarch
32
+ Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
33
+ Summary: Documentation for rubygem-%{gem_name}
34
+
35
+ %description doc
36
+ This package contains documentation for rubygem-%{gem_name}.
37
+
38
+ %prep
39
+ %setup -n %{pkg_name}-%{version} -q -c -T
40
+ mkdir -p .%{gem_dir}
41
+ %{?scl:scl enable %{scl} "}
42
+ gem install --local --install-dir .%{gem_dir} \
43
+ --force %{SOURCE0} --no-rdoc --no-ri
44
+ %{?scl:"}
45
+
46
+ %build
47
+
48
+ %install
49
+ mkdir -p %{buildroot}%{gem_dir}
50
+ cp -a .%{gem_dir}/* \
51
+ %{buildroot}%{gem_dir}/
52
+
53
+ mkdir -p %{buildroot}%{katello_bundlerd_dir}
54
+ cat <<GEMFILE > %{buildroot}%{katello_bundlerd_dir}/foreman.rb
55
+ gem 'katello-foreman-engine'
56
+ GEMFILE
57
+
58
+
59
+ %files
60
+ %dir %{gem_instdir}
61
+ %{gem_instdir}/lib
62
+ %{gem_instdir}/script
63
+ %exclude %{gem_cache}
64
+ %{gem_spec}
65
+ %{katello_bundlerd_dir}/foreman.rb
66
+ %doc %{gem_instdir}/LICENSE
67
+
68
+ %exclude %{gem_instdir}/.gitignore
69
+ %exclude %{gem_instdir}/test
70
+ #%exclude %{gem_instdir}/.travis.yml
71
+ %exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
72
+
73
+ %files doc
74
+ %doc %{gem_instdir}/LICENSE
75
+ #%doc %{gem_instdir}/README.md
76
+ %{gem_instdir}/Rakefile
77
+ %{gem_instdir}/Gemfile
78
+ %{gem_instdir}/%{gem_name}.gemspec
79
+
80
+ %changelog
81
+ * Thu May 30 2013 Ivan Necas <inecas@redhat.com> 0.0.3-1
82
+ - Katello admins are admins in foreman too (mhulan@redhat.com)
83
+
84
+ * Fri May 17 2013 Ivan Necas <inecas@redhat.com> 0.0.2-1
85
+ - Installation media integration (inecas@redhat.com)
86
+
87
+ * Wed May 08 2013 Ivan Necas <inecas@redhat.com> 0.0.1-1
88
+ - new package built with tito
89
+
90
+
91
+
92
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello-foreman-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -72,6 +72,10 @@ files:
72
72
  - lib/katello_foreman_engine/engine.rb
73
73
  - lib/katello_foreman_engine/helpers.rb
74
74
  - lib/katello_foreman_engine/settings.rb
75
+ - rel-eng/packages/.readme
76
+ - rel-eng/packages/rubygem-katello-foreman-engine
77
+ - rel-eng/tito.props
78
+ - rubygem-katello-foreman-engine.spec
75
79
  - script/rails
76
80
  - test/lib/actions/distribution_publish_test.rb
77
81
  - test/lib/actions/distribution_unpublish_test.rb
@@ -109,4 +113,3 @@ signing_key:
109
113
  specification_version: 3
110
114
  summary: Foreman specific parts of Katello
111
115
  test_files: []
112
- has_rdoc: