Module: Tomo

Defined in:
lib/tomo.rb,
lib/tomo/cli.rb,
lib/tomo/ssh.rb,
lib/tomo/host.rb,
lib/tomo/path.rb,
lib/tomo/error.rb,
lib/tomo/paths.rb,
lib/tomo/colors.rb,
lib/tomo/logger.rb,
lib/tomo/plugin.rb,
lib/tomo/remote.rb,
lib/tomo/result.rb,
lib/tomo/script.rb,
lib/tomo/console.rb,
lib/tomo/runtime.rb,
lib/tomo/testing.rb,
lib/tomo/version.rb,
lib/tomo/commands.rb,
lib/tomo/task_api.rb,
lib/tomo/cli/error.rb,
lib/tomo/cli/rules.rb,
lib/tomo/cli/state.rb,
lib/tomo/cli/usage.rb,
lib/tomo/ssh/error.rb,
lib/tomo/cli/parser.rb,
lib/tomo/plugin_dsl.rb,
lib/tomo/cli/command.rb,
lib/tomo/cli/options.rb,
lib/tomo/ssh/options.rb,
lib/tomo/commands/run.rb,
lib/tomo/console/menu.rb,
lib/tomo/task_library.rb,
lib/tomo/commands/help.rb,
lib/tomo/commands/init.rb,
lib/tomo/configuration.rb,
lib/tomo/shell_builder.rb,
lib/tomo/testing/local.rb,
lib/tomo/commands/setup.rb,
lib/tomo/commands/tasks.rb,
lib/tomo/ssh/connection.rb,
lib/tomo/cli/completions.rb,
lib/tomo/commands/deploy.rb,
lib/tomo/runtime/context.rb,
lib/tomo/runtime/current.rb,
lib/tomo/commands/default.rb,
lib/tomo/commands/version.rb,
lib/tomo/logger/tagged_io.rb,
lib/tomo/ssh/script_error.rb,
lib/tomo/configuration/dsl.rb,
lib/tomo/error/suggestions.rb,
lib/tomo/ssh/child_process.rb,
lib/tomo/ssh/unknown_error.rb,
lib/tomo/cli/common_options.rb,
lib/tomo/cli/deploy_options.rb,
lib/tomo/configuration/glob.rb,
lib/tomo/console/key_reader.rb,
lib/tomo/testing/cli_tester.rb,
lib/tomo/testing/connection.rb,
lib/tomo/cli/project_options.rb,
lib/tomo/cli/rules_evaluator.rb,
lib/tomo/runtime/explanation.rb,
lib/tomo/runtime/task_runner.rb,
lib/tomo/ssh/connection_error.rb,
lib/tomo/ssh/executable_error.rb,
lib/tomo/ssh/permission_error.rb,
lib/tomo/testing/docker_image.rb,
lib/tomo/cli/interrupted_error.rb,
lib/tomo/testing/log_capturing.rb,
lib/tomo/runtime/execution_plan.rb,
lib/tomo/runtime/no_tasks_error.rb,
lib/tomo/testing/cli_extensions.rb,
lib/tomo/testing/ssh_extensions.rb,
lib/tomo/runtime/privileged_task.rb,
lib/tomo/testing/host_extensions.rb,
lib/tomo/ssh/connection_validator.rb,
lib/tomo/configuration/environment.rb,
lib/tomo/testing/mocked_exec_error.rb,
lib/tomo/testing/mocked_exit_error.rb,
lib/tomo/testing/remote_extensions.rb,
lib/tomo/commands/completion_script.rb,
lib/tomo/runtime/inline_thread_pool.rb,
lib/tomo/runtime/task_aborted_error.rb,
lib/tomo/runtime/unknown_task_error.rb,
lib/tomo/testing/mock_plugin_tester.rb,
lib/tomo/runtime/host_execution_step.rb,
lib/tomo/configuration/dsl/batch_block.rb,
lib/tomo/configuration/dsl/config_file.rb,
lib/tomo/configuration/dsl/tasks_block.rb,
lib/tomo/console/non_interactive_error.rb,
lib/tomo/ssh/unsupported_version_error.rb,
lib/tomo/configuration/plugins_registry.rb,
lib/tomo/runtime/settings_interpolation.rb,
lib/tomo/runtime/settings_required_error.rb,
lib/tomo/runtime/template_not_found_error.rb,
lib/tomo/configuration/dsl/error_formatter.rb,
lib/tomo/configuration/unknown_plugin_error.rb,
lib/tomo/runtime/concurrent_ruby_load_error.rb,
lib/tomo/configuration/dsl/environment_block.rb,
lib/tomo/runtime/concurrent_ruby_thread_pool.rb,
lib/tomo/configuration/dsl/hosts_and_settings.rb,
lib/tomo/configuration/role_based_task_filter.rb,
lib/tomo/configuration/project_not_found_error.rb,
lib/tomo/configuration/unknown_environment_error.rb,
lib/tomo/configuration/plugin_file_not_found_error.rb,
lib/tomo/configuration/plugins_registry/gem_resolver.rb,
lib/tomo/configuration/unspecified_environment_error.rb,
lib/tomo/configuration/plugins_registry/file_resolver.rb

Defined Under Namespace

Modules: Colors, Commands, Plugin, PluginDSL, SSH, TaskAPI, Testing Classes: CLI, Configuration, Console, Error, Host, Logger, Path, Paths, Remote, Result, Runtime, Script, ShellBuilder, TaskLibrary

Constant Summary collapse

DEFAULT_CONFIG_PATH =
".tomo/config.rb"
VERSION =
"1.22.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debug=(value) ⇒ Object (writeonly)

Sets the attribute debug

Parameters:

  • value

    the value to set the attribute debug to.



30
31
32
# File 'lib/tomo.rb', line 30

def debug=(value)
  @debug = value
end

.dry_run=(value) ⇒ Object (writeonly)

Sets the attribute dry_run

Parameters:

  • value

    the value to set the attribute dry_run to.



30
31
32
# File 'lib/tomo.rb', line 30

def dry_run=(value)
  @dry_run = value
end

.loggerObject

Returns the value of attribute logger.



29
30
31
# File 'lib/tomo.rb', line 29

def logger
  @logger
end

.quiet=(value) ⇒ Object (writeonly)

Sets the attribute quiet

Parameters:

  • value

    the value to set the attribute quiet to.



30
31
32
# File 'lib/tomo.rb', line 30

def quiet=(value)
  @quiet = value
end

Class Method Details

.bundled?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/tomo.rb', line 44

def bundled?
  !!(defined?(Bundler) && ENV["BUNDLE_GEMFILE"])
end

.debug?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/tomo.rb', line 32

def debug?
  !!@debug
end

.dry_run?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/tomo.rb', line 36

def dry_run?
  !!@dry_run
end

.quiet?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/tomo.rb', line 40

def quiet?
  !!@quiet
end