Module
Aruba::Api
In:
lib/aruba/api.rb
Methods
_create_file
_ensure_newline
_mkdir
_write_interactive
all_output
all_stderr
all_stdout
announce_or_puts
append_to_file
assert_exact_output
assert_exit_status_and_output
assert_exit_status_and_partial_output
assert_exiting_with
assert_failing_with
assert_partial_output
assert_passing_with
cd
check_directory_presence
check_exact_file_content
check_file_content
check_file_presence
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!
type
unescape
unset_bundler_env_vars
use_clean_gemset
write_file
Constants
DEFAULT_TIMEOUT_SECONDS
=
3
DEFAULT_IO_WAIT_SECONDS
=
0.1
Public Instance methods
_create_file
(file_name, file_content, check_presence)
_ensure_newline
(str)
_mkdir
(dir_name)
_write_interactive
(input)
all_output
()
all_stderr
()
all_stdout
()
announce_or_puts
(msg)
append_to_file
(file_name, file_content)
assert_exact_output
(exact_output)
assert_exit_status_and_output
(expect_to_pass, output, expect_exact_output)
assert_exit_status_and_partial_output
(expect_to_pass, partial_output)
assert_exiting_with
(expect_to_pass)
assert_failing_with
(partial_output)
assert_partial_output
(partial_output)
assert_passing_with
(partial_output)
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)
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!
()
type
(input)
unescape
(string)
unset_bundler_env_vars
()
use_clean_gemset
(gemset)
write_file
(file_name, file_content)
[Validate]