Class
Specinfra::Command::Base::File
In:
lib/specinfra/command/base/file.rb
Parent:
Specinfra::Command::Base
Methods
change_group
change_mode
change_owner
check_contains
check_contains_lines
check_contains_with_fixed_strings
check_contains_with_regexp
check_contains_within
check_exists
check_has_mode
check_is_block_device
check_is_character_device
check_is_dereferenceable
check_is_directory
check_is_file
check_is_grouped
check_is_link
check_is_linked_to
check_is_mounted
check_is_owned_by
check_is_pipe
check_is_socket
check_is_symlink
copy
create_as_directory
download
get_content
get_link_realpath
get_link_target
get_md5sum
get_mode
get_mtime
get_owner_group
get_owner_user
get_sha256sum
get_size
link_to
move
remove
Public Class methods
change_group
(file, group, options = {})
change_mode
(file, mode, options = {})
change_owner
(file, owner, group=nil, options = {})
check_contains
(file, expected_pattern)
check_contains_lines
(file, expected_lines, from=nil, to=nil)
check_contains_with_fixed_strings
(file, expected_pattern)
check_contains_with_regexp
(file, expected_pattern)
check_contains_within
(file, expected_pattern, from=nil, to=nil)
check_exists
(file)
check_has_mode
(file, mode)
check_is_block_device
(file)
check_is_character_device
(file)
check_is_dereferenceable
(link)
check_is_directory
(directory)
check_is_file
(file)
check_is_grouped
(file, group)
check_is_link
(link)
check_is_linked_to
(link, target)
check_is_mounted
(path)
check_is_owned_by
(file, owner)
check_is_pipe
(file)
check_is_socket
(file)
check_is_symlink
(file)
copy
(src, dest, options = {})
create_as_directory
(file)
download
(src, dest)
get_content
(file)
get_link_realpath
(link)
get_link_target
(link)
get_md5sum
(file)
get_mode
(file)
get_mtime
(file)
get_owner_group
(file)
get_owner_user
(file)
get_sha256sum
(file)
get_size
(file)
link_to
(link, target, options = {})
move
(src, dest)
remove
(file)
[Validate]