Class: Boxen::Postflight::Active

Inherits:
Boxen::Postflight show all
Defined in:
lib/boxen/postflight/active.rb

Overview

Checks to see if the basic environment is loaded.

Instance Attribute Summary

Attributes inherited from Check

#config

Instance Method Summary collapse

Methods inherited from Check

#abort, checks, #initialize, register, run, #warn

Constructor Details

This class inherits a constructor from Boxen::Check

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/boxen/postflight/active.rb', line 7

def ok?
  Boxen::Util.active?
end

#runObject



11
12
13
14
15
# File 'lib/boxen/postflight/active.rb', line 11

def run
  warn "You haven't loaded Boxen's environment yet!",
    "To permanently fix this, source #{config.envfile} at the end",
    "of your shell's startup file."
end