Module
Aruba::Api
In:
lib/aruba/api.rb
Methods
_create_file
_create_fixed_size_file
_ensure_newline
_mkdir
_write_interactive
all_output
all_stderr
all_stdout
announce_or_puts
append_output_to
append_to_file
assert_exact_output
assert_exit_status
assert_exit_status_and_output
assert_exit_status_and_partial_output
assert_failing_with
assert_matching_output
assert_no_partial_output
assert_not_exit_status
assert_partial_output
assert_passing_with
assert_success
cd
check_directory_presence
check_exact_file_content
check_file_content
check_file_presence
check_file_size
create_dir
current_dir
current_ruby
detect_ruby
dirs
exit_timeout
get_process
in_current_dir
io_wait
only_processes
original_env
output_from
overwrite_file
prep_for_fs_check
processes
regexp
register_process
remove_file
restore_env
run
run_interactive
run_simple
set_env
stderr_from
stdout_from
stop_processes!
terminate_processes!
type
unescape
unset_bundler_env_vars
use_clean_gemset
write_file
write_fixed_size_file
Included Modules
RSpec::Matchers
Classes and Modules
Class
Aruba::Api::Announcer
Constants
DEFAULT_TIMEOUT_SECONDS
=
3
DEFAULT_IO_WAIT_SECONDS
=
0.1
Public Instance methods
_create_file
(file_name, file_content, check_presence)
_create_fixed_size_file
(file_name, file_size, check_presence)
_ensure_newline
(str)
_mkdir
(dir_name)
_write_interactive
(input)
all_output
()
all_stderr
()
all_stdout
()
announce_or_puts
(msg)
append_output_to
(message)
append_to_file
(file_name, file_content)
assert_exact_output
(expected, actual)
assert_exit_status
(status)
assert_exit_status_and_output
(expect_to_pass, expected_output, expect_exact_output)
TODO: Remove this. Call more methods elsewhere instead. Reveals more intent.
assert_exit_status_and_partial_output
(expect_to_pass, expected)
assert_failing_with
(expected)
assert_matching_output
(expected, actual)
assert_no_partial_output
(unexpected, actual)
assert_not_exit_status
(status)
assert_partial_output
(expected, actual)
assert_passing_with
(expected)
assert_success
(success)
cd
(dir)
check_directory_presence
(paths, expect_presence)
check_exact_file_content
(file, exact_content)
check_file_content
(file, partial_content, expect_match)
check_file_presence
(paths, expect_presence)
check_file_size
(paths_and_sizes)
create_dir
(dir_name)
current_dir
()
current_ruby
()
detect_ruby
(cmd)
dirs
()
exit_timeout
()
get_process
(wanted)
in_current_dir
(&block)
io_wait
()
only_processes
()
original_env
()
output_from
(cmd)
overwrite_file
(file_name, file_content)
prep_for_fs_check
(&block)
processes
()
regexp
(string_or_regexp)
register_process
(name, process)
remove_file
(file_name)
restore_env
()
run
(cmd) {|process| ...}
run_interactive
(cmd)
run_simple
(cmd, fail_on_error=true)
set_env
(key, value)
stderr_from
(cmd)
stdout_from
(cmd)
stop_processes!
()
terminate_processes!
()
type
(input)
unescape
(string)
unset_bundler_env_vars
()
use_clean_gemset
(gemset)
write_file
(file_name, file_content)
write_fixed_size_file
(file_name, file_size)
[Validate]