Module: Easycompile::Constants
- Included in:
- Easycompile, Base
- Defined in:
- lib/easycompile/constants/misc.rb,
lib/easycompile/constants/constants.rb,
lib/easycompile/constants/namespace.rb,
lib/easycompile/constants/programs_directory.rb,
lib/easycompile/constants/array_possible_archives.rb,
lib/easycompile/constants/file_and_directory_constants.rb
Overview
Easycompile::Constants
Constant Summary collapse
- ERROR_LINE =
#
ERROR_LINE
#
' 2>&1'.freeze
- SHALL_WE_CREATE_A_BUILD_DIRECTORY =
#
SHALL_WE_CREATE_A_BUILD_DIRECTORY
If true then we will create a build directory called “BUILD”.
#
false
- NAMESPACE =
#
NAMESPACE
#
'Easycompile'
- PROGRAMS_DIRECTORY =
'/home/Programs/'
- ARRAY_POSSIBLE_ARCHIVES =
#
ARRAY_POSSIBLE_ARCHIVES
This Array will list possible archive “types”, such as “.tar.xz” and so forth.
#
%w( xz tar gz zip bz2 lz )
- MESON_BUILD_FILE =
#
MESON_BUILD_FILE
Refer to the name of the default meson-build file, which is meson.build.
#
'meson.build'
- CMAKE_FILE =
#
CMAKE_FILE
Refer to the name of the default cmake-file, which is called CMakeLists.txt.
#
'CMakeLists.txt'
- FILE_NAME_OF_THE_BUILD_DIRECTORY =
#
FILE_NAME_OF_THE_BUILD_DIRECTORY
#
"#{PROJECT_BASE_DIRECTORY}yaml/name_of_the_build_directory.yml"
- LAST_DOWNLOADED_FILE =
#
LAST_DOWNLOADED_FILE
#
"#{ENV['HOME']}/LAST_DOWNLOADED_FILE.md"
- INDIVIDUAL_COOKBOOKS =
#
INDIVIDUAL_COOKBOOKS
This will currently use a hardcoded path, which is only useful on my home setup..
#
'/home/x/DATA/PROGRAMMING_LANGUAGES/RUBY/src/'\ 'rbt/lib/rbt/yaml/cookbooks/'
- RUBY_SRC =
'/home/x/DATA/PROGRAMMING_LANGUAGES/RUBY/src/'
- LOCATION_OF_SETUP_RB =
#
LOCATION_OF_SETUP_RB
We can simply make use of the RUBY_SRC constant here.
#
"#{RUBY_SRC}roebe/lib/roebe/setup/setup.rb"
- SRC_DIR =
'/home/x/src/'
- TEMP_DIR =
'/tmp/'
Class Method Summary collapse
-
.temp_dir? ⇒ Boolean
# === temp_dir? ========================================================================= #.
Instance Method Summary collapse
-
#ruby_src? ⇒ Boolean
# === ruby_src? ========================================================================= #.
-
#source_dir? ⇒ Boolean
(also: #src_dir?)
# === source_dir? ========================================================================= #.
Class Method Details
.temp_dir? ⇒ Boolean
#
temp_dir?
#
110 111 112 |
# File 'lib/easycompile/constants/file_and_directory_constants.rb', line 110 def self.temp_dir? TEMP_DIR end |
Instance Method Details
#ruby_src? ⇒ Boolean
#
ruby_src?
#
66 67 68 |
# File 'lib/easycompile/constants/file_and_directory_constants.rb', line 66 def ruby_src? RUBY_SRC end |
#source_dir? ⇒ Boolean Also known as: src_dir?
#
source_dir?
#
92 93 94 |
# File 'lib/easycompile/constants/file_and_directory_constants.rb', line 92 def source_dir? SRC_DIR end |