Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glob files to include in gem more effectively. #26

Merged
merged 1 commit into from
Aug 18, 2013

Conversation

imeyer
Copy link
Contributor

@imeyer imeyer commented Aug 18, 2013

I was receiving a ENOENT when trying to create an RPM repository
due to a missing template (primary.xml.erb to be specific). I
looked in the gem lib and the templates dir only had the
deb_release.erb installed. Using Dir.glob grabs all the necessary
files.

I left the version number alone so that you can bump it to whatever you please.

I was receiving a ENOENT when trying to create an RPM repository
due to a missing template (primary.xml.erb to be specific). I
looked in the gem lib and the templates dir only had the 
deb_release.erb installed. Using Dir.glob grabs all the necessary
files.
@imeyer
Copy link
Contributor Author

imeyer commented Aug 18, 2013

Here is the error and the contents of the directory as seen on my system:

[root@admin01 ~]# prm -t rpm -a x86_64 -r centos6 -g -p keymanager-admin --accesskey $SECRET_KEY --secretkey $SECRET_PASSPHRASE
/usr/lib64/ruby/gems/1.9.1/gems/prm-0.2.0/lib/prm/rpm.rb:61:in `initialize': No such file or directory - /usr/lib64/ruby/gems/1.9.1/gems/prm-0.2.0/lib/prm/../../templates/primary.xml.erb (Errno::ENOENT)
    from /usr/lib64/ruby/gems/1.9.1/gems/prm-0.2.0/lib/prm/rpm.rb:61:in `open'
    from /usr/lib64/ruby/gems/1.9.1/gems/prm-0.2.0/lib/prm/rpm.rb:61:in `block (3 levels) in build_rpm_repo'
    from /usr/lib64/ruby/gems/1.9.1/gems/prm-0.2.0/lib/prm/rpm.rb:60:in `each'
    from /usr/lib64/ruby/gems/1.9.1/gems/prm-0.2.0/lib/prm/rpm.rb:60:in `block (2 levels) in build_rpm_repo'
    from /usr/lib64/ruby/gems/1.9.1/gems/peach-0.5.1/lib/peach.rb:22:in `block (2 levels) in peach'
    from /usr/lib64/ruby/gems/1.9.1/gems/peach-0.5.1/lib/peach.rb:22:in `each'
    from /usr/lib64/ruby/gems/1.9.1/gems/peach-0.5.1/lib/peach.rb:22:in `block in peach'
    from /usr/lib64/ruby/gems/1.9.1/gems/peach-0.5.1/lib/peach.rb:13:in `block (2 levels) in _peach_run'

[root@admin01 ~]# ls /usr/lib64/ruby/gems/1.9.1/gems/prm-0.2.0/templates/
deb_release.erb

dnbert pushed a commit that referenced this pull request Aug 18, 2013
Glob files to include in gem more effectively.
@dnbert dnbert merged commit ab70d4a into dnbert:master Aug 18, 2013
@dnbert
Copy link
Owner

dnbert commented Aug 18, 2013

That is embarrassing! Thanks, I've pushed version 0.2.1 to Rubygems.org and added you to the Contributor list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants