refs #7264 - check for java, unless installing for capsule

This commit moves the java check from a check to a hook, so that
we can more easily differentiate the behavior for a capsule vs
server install.  In addition, if the installer is being run for
the capsule, skip the java check, since the capsule does not require
it.
Although, you may need to also check that Katello exists to identify a
server install.
On Aug 26, 2014 6:49 PM, "Eric D Helms" <eric.d.helms@gmail.com> wrote:

> That should do it.
> On Aug 26, 2014 6:43 PM, "Brad Buckingham" <notifications@github.com>
> wrote:
>
>> In hooks/pre/15-check_java.rb:
>>
>> > @@ -0,0 +1,24 @@
>> > +JAVA_VERSION = %q(An OpenJDK version of Java greater than 1.7 should be installed.  For more details on the version currently installed, run 'java -version')
>> > +
>> > +OPENJDK = %q(A version of java which is not OpenJDK is installed.
>> > +
>> > +Please install an OpenJDK version greater than 1.7.  For more details on the version currently installed, run 'java -version')
>> > +
>> > +
>> > +def error_exit(message, code)
>> > +  $stderr.puts message
>> > +  kafo.class.exit code
>> > +end
>> > +
>> > +unless param('capsule', 'pulp') && param('capsule', 'pulp').value
>>
>> @ehelms <https://github.com/ehelms>, would checking "param('capsule')"
>> accomplish that? (i.e apply this hook to any capsule install)
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/Katello/katello-installer/pull/110/files#r16747669>.
>>
>