Class: Dapp::Config::Shell
- Inherits:
-
Object
- Object
- Dapp::Config::Shell
- Defined in:
- lib/dapp/config/shell.rb
Overview
Shell
Instance Attribute Summary collapse
-
#_app_install ⇒ Object
readonly
Returns the value of attribute _app_install.
-
#_app_install_cache_version ⇒ Object
readonly
Returns the value of attribute _app_install_cache_version.
-
#_app_setup ⇒ Object
readonly
Returns the value of attribute _app_setup.
-
#_app_setup_cache_version ⇒ Object
readonly
Returns the value of attribute _app_setup_cache_version.
-
#_infra_install ⇒ Object
readonly
Returns the value of attribute _infra_install.
-
#_infra_install_cache_version ⇒ Object
readonly
Returns the value of attribute _infra_install_cache_version.
-
#_infra_setup ⇒ Object
readonly
Returns the value of attribute _infra_setup.
-
#_infra_setup_cache_version ⇒ Object
readonly
Returns the value of attribute _infra_setup_cache_version.
Instance Method Summary collapse
- #app_install(*args, cache_version: nil) ⇒ Object
- #app_setup(*args, cache_version: nil) ⇒ Object
- #clone ⇒ Object
- #infra_install(*args, cache_version: nil) ⇒ Object
- #infra_setup(*args, cache_version: nil) ⇒ Object
-
#initialize ⇒ Shell
constructor
A new instance of Shell.
Constructor Details
#initialize ⇒ Shell
Returns a new instance of Shell.
8 9 10 11 12 13 |
# File 'lib/dapp/config/shell.rb', line 8 def initialize @_infra_install = [] @_infra_setup = [] @_app_install = [] @_app_setup = [] end |
Instance Attribute Details
#_app_install ⇒ Object (readonly)
Returns the value of attribute _app_install.
5 6 7 |
# File 'lib/dapp/config/shell.rb', line 5 def _app_install @_app_install end |
#_app_install_cache_version ⇒ Object (readonly)
Returns the value of attribute _app_install_cache_version.
6 7 8 |
# File 'lib/dapp/config/shell.rb', line 6 def _app_install_cache_version @_app_install_cache_version end |
#_app_setup ⇒ Object (readonly)
Returns the value of attribute _app_setup.
5 6 7 |
# File 'lib/dapp/config/shell.rb', line 5 def _app_setup @_app_setup end |
#_app_setup_cache_version ⇒ Object (readonly)
Returns the value of attribute _app_setup_cache_version.
6 7 8 |
# File 'lib/dapp/config/shell.rb', line 6 def _app_setup_cache_version @_app_setup_cache_version end |
#_infra_install ⇒ Object (readonly)
Returns the value of attribute _infra_install.
5 6 7 |
# File 'lib/dapp/config/shell.rb', line 5 def _infra_install @_infra_install end |
#_infra_install_cache_version ⇒ Object (readonly)
Returns the value of attribute _infra_install_cache_version.
6 7 8 |
# File 'lib/dapp/config/shell.rb', line 6 def _infra_install_cache_version @_infra_install_cache_version end |
#_infra_setup ⇒ Object (readonly)
Returns the value of attribute _infra_setup.
5 6 7 |
# File 'lib/dapp/config/shell.rb', line 5 def _infra_setup @_infra_setup end |
#_infra_setup_cache_version ⇒ Object (readonly)
Returns the value of attribute _infra_setup_cache_version.
6 7 8 |
# File 'lib/dapp/config/shell.rb', line 6 def _infra_setup_cache_version @_infra_setup_cache_version end |
Instance Method Details
#app_install(*args, cache_version: nil) ⇒ Object
25 26 27 28 |
# File 'lib/dapp/config/shell.rb', line 25 def app_install(*args, cache_version: nil) _app_install.concat(args) @_app_install_cache_version = cache_version end |
#app_setup(*args, cache_version: nil) ⇒ Object
30 31 32 33 |
# File 'lib/dapp/config/shell.rb', line 30 def app_setup(*args, cache_version: nil) _app_setup.concat(args) @_app_setup_cache_version = cache_version end |
#clone ⇒ Object
35 36 37 |
# File 'lib/dapp/config/shell.rb', line 35 def clone Marshal.load(Marshal.dump(self)) end |
#infra_install(*args, cache_version: nil) ⇒ Object
15 16 17 18 |
# File 'lib/dapp/config/shell.rb', line 15 def infra_install(*args, cache_version: nil) @_infra_install.concat(args) @_infra_install_cache_version = cache_version end |
#infra_setup(*args, cache_version: nil) ⇒ Object
20 21 22 23 |
# File 'lib/dapp/config/shell.rb', line 20 def infra_setup(*args, cache_version: nil) @_infra_setup.concat(args) @_infra_setup_cache_version = cache_version end |