Sha256: dd855fb16b3a6d3e35986693fa15af3f4d8d446526537e2bb7ad6ed66aba64fa

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

module AutomateIt # :nodoc:
  # === AutomateIt::Constants
  #
  # Various constants.
  module AutomateIt::Constants
    INSTALL_DIR = File.expand_path(File.join(File.dirname(__FILE__), "..", ".."))
    
    HELPERS_DIR = File.join(INSTALL_DIR, "helpers")

    # Output prefix for command execution, e.g., "** ls -la"
    PEXEC = "** "

    # Output prefix for notes, e.g., "=> Something happened"
    PNOTE = "=> "

    # Output prefix for errors, e.g., "!! Something bad happened"
    PERROR = "!! "

    # Boilerplate to add to tops of generated files, warning people not to edit
    # them directly.
    WARNING_BOILERPLATE = "# +---------------------------------------------------------------------+
# | WARNING: Do NOT edit this file directly or your changes will be     |
# | lost. If you need to change this file, you must incorporate your    |
# | changes into the AutomateIt project that created it. If you don't   |
# | know what this means, please talk to your system administrator.     |
# +---------------------------------------------------------------------+
#
"
  end

  # Inject constants back into top, providing AutomateIt::VERSION and such.
  module_eval { include Constants }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
automateit-0.71220 lib/automateit/constants.rb
automateit-0.71112 lib/automateit/constants.rb
automateit-0.71219 lib/automateit/constants.rb
automateit-0.71221 lib/automateit/constants.rb
automateit-0.71111 lib/automateit/constants.rb
automateit-0.71226.1 lib/automateit/constants.rb
automateit-0.80116 lib/automateit/constants.rb
automateit-0.71226 lib/automateit/constants.rb
automateit-0.71230 lib/automateit/constants.rb