Class: Pathname
- Defined in:
- lib/jamf/ruby_extensions/pathname.rb
Overview
include the modules loaded above
Instance Method Summary collapse
-
#j_append(content) ⇒ Object
(also: #jss_append)
included
from JamfRubyExtensions::Pathname::Utils
Append some string content to a file.
-
#j_chown(usr, grp) ⇒ Object
(also: #jss_chown)
included
from JamfRubyExtensions::Pathname::Utils
Pathname should use FileUtils.chown, not File.chown.
-
#j_cp(dest, **options) ⇒ Object
(also: #jss_cp)
included
from JamfRubyExtensions::Pathname::Utils
Copy a path to a destination.
-
#j_cp_r(dest, **options) ⇒ Object
(also: #jss_cp_r)
included
from JamfRubyExtensions::Pathname::Utils
Recursively copy this path to a destination.
-
#j_include?(other) ⇒ Boolean
(also: #jss_include?)
included
from JamfRubyExtensions::Pathname::Predicates
does a path include another? i.e.
-
#j_real_file? ⇒ Boolean
(also: #jss_real_file?)
included
from JamfRubyExtensions::Pathname::Predicates
Is this a real file rather than a symlink?.
-
#j_save(content) ⇒ Object
(also: #jss_save)
included
from JamfRubyExtensions::Pathname::Utils
Write some string content to a file.
-
#j_touch ⇒ Object
(also: #jss_touch)
included
from JamfRubyExtensions::Pathname::Utils
Touching can sometimes be good.
Instance Method Details
#j_append(content) ⇒ Object Also known as: jss_append Originally defined in module JamfRubyExtensions::Pathname::Utils
Append some string content to a file.
Simpler than always using an open('a') block
#j_chown(usr, grp) ⇒ Object Also known as: jss_chown Originally defined in module JamfRubyExtensions::Pathname::Utils
Pathname should use FileUtils.chown, not File.chown
#j_cp(dest, **options) ⇒ Object Also known as: jss_cp Originally defined in module JamfRubyExtensions::Pathname::Utils
Copy a path to a destination
#j_cp_r(dest, **options) ⇒ Object Also known as: jss_cp_r Originally defined in module JamfRubyExtensions::Pathname::Utils
Recursively copy this path to a destination
#j_include?(other) ⇒ Boolean Also known as: jss_include? Originally defined in module JamfRubyExtensions::Pathname::Predicates
does a path include another? i.e. is 'other' a descendant of self ?
#j_real_file? ⇒ Boolean Also known as: jss_real_file? Originally defined in module JamfRubyExtensions::Pathname::Predicates
Is this a real file rather than a symlink?
#j_save(content) ⇒ Object Also known as: jss_save Originally defined in module JamfRubyExtensions::Pathname::Utils
Write some string content to a file.
Simpler than always using an open('w') block CAUTION this overwrites files!
#j_touch ⇒ Object Also known as: jss_touch Originally defined in module JamfRubyExtensions::Pathname::Utils
Touching can sometimes be good