Class: PKGWizard::RedHat
- Inherits:
-
Object
- Object
- PKGWizard::RedHat
- Defined in:
- lib/pkg-wizard.rb
Instance Method Summary collapse
Instance Method Details
#prepare_env ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/pkg-wizard.rb', line 44 def prepare_env if `uname -r` =~ /\.el6\./ else raise UnsupportedDistribution.new('Unsupported RHEL distribution') end output = `yum install createrepo yum-utils rsync git rpmdevtools wget mock 2>&1` end |
#to_s ⇒ Object
51 52 53 |
# File 'lib/pkg-wizard.rb', line 51 def to_s 'redhat' end |