Class: AssLauncher::Enterprise::Cli::Parameters::Path Private

Inherits:
StringParam
  • Object
show all
Includes:
Support::Platforms
Defined in:
lib/ass_launcher/enterprise/cli/parameters.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Parameter expects filesystem path Path string cam came from diferent sources and have windows, unix or unix-cygwin format It class instance make path string platform independet use Support::Platforms::PathExtension class

Constant Summary collapse

DEFAULT_OPTIONS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Extends for DEFAULT_OPTIONS.

Option: :must_be expects :exist or :not_exist values.

If :exist given verified for path must be exists and if :not_exist given verified for pat must be not exists

Parameters::DEFAULT_OPTIONS.merge(must_be: nil)

Instance Attribute Summary

Attributes included from AssLauncher::Enterprise::Cli::Parameters

#binary_matcher, #desc, #group, #modes, #name, #options, #parent

Instance Method Summary collapse

Methods included from Support::Platforms

cygwin?, env, glob, linux?, path, path_class, windows?

Methods inherited from StringParam

#argument_require, #arguments_count, #initialize

Methods included from AssLauncher::Enterprise::Cli::Parameters

#add_child, #child?, #childs, #chose_list, #deep, #full_name, #match?, #match_version?, #parents, #required?, #restrict_from, #root?, #switch_list, #switch_value, #to_args, #to_s, #to_sym, #usage, #value_validator

Constructor Details

This class inherits a constructor from AssLauncher::Enterprise::Cli::Parameters::StringParam

Instance Method Details

#must_beObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Wrapper for AssLauncher::Enterprise::Cli::Parameters#options



270
271
272
# File 'lib/ass_launcher/enterprise/cli/parameters.rb', line 270

def must_be
  options[:must_be]
end