Class: Dapp::Config::Main
- Inherits:
-
Application
- Object
- Application
- Dapp::Config::Main
- Defined in:
- lib/dapp/config/main.rb
Overview
Main
Constant Summary
Constants included from Application::Logging
Application::Logging::DEFAULT_STYLE
Instance Attribute Summary
Attributes inherited from Application
#cli_options, #config, #ignore_git_fetch
Instance Method Summary collapse
-
#initialize(**options) ⇒ Main
constructor
A new instance of Main.
- #name(value) ⇒ Object
Methods inherited from Application
Methods included from Filelock
Methods included from Application::Path
#build_cache_path, #build_path, #container_build_path, #home_path
Methods included from Application::GitArtifact
#git_artifacts, #local_git_artifacts, #remote_git_artifacts
Methods included from Application::Logging
#dry_run?, #free_space, #log?, #log_process, #log_process_default, #log_process_short, #log_process_verbose, #log_quiet?, #log_secondary_process, #log_state, #log_time?, #log_verbose?, #rjust, #slice, #terminal_width
Methods included from Helper::Sha256
Methods included from Helper::I18n
Methods included from Helper::Shellout
included, #shellout, #shellout!
Methods included from Helper::Log
included, #log, #log_format_string, #log_indent, #log_indent_next, #log_indent_prev, #log_info, #log_secondary, #log_step, #log_time, #log_with_indent, #with_log_indent
Constructor Details
#initialize(**options) ⇒ Main
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dapp/config/main.rb', line 5 def initialize(**) @_home_path = Pathname.new([:dappfile_path]).parent..to_s @_name = Pathname.new(@_home_path).basename.to_s @_builder = Pathname.new(@_home_path).join('Berksfile').exist? ? :chef : :shell @_docker = Docker.new @_git_artifact = GitArtifact.new @_shell = Shell.new @_chef = Chef.new super(nil) end |
Instance Method Details
#name(value) ⇒ Object
18 19 20 |
# File 'lib/dapp/config/main.rb', line 18 def name(value) @_name = value end |