Class: Kuby::DevSetup
- Inherits:
-
Object
- Object
- Kuby::DevSetup
- Extended by:
- T::Sig
- Defined in:
- lib/kuby/dev_setup.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Instance Method Summary collapse
-
#initialize(environment) ⇒ DevSetup
constructor
A new instance of DevSetup.
- #run ⇒ Object
Constructor Details
#initialize(environment) ⇒ DevSetup
Returns a new instance of DevSetup.
267 268 269 270 271 272 |
# File 'lib/kuby/dev_setup.rb', line 267 def initialize(environment) @environment = T.let(environment, Environment) @setup_tasks = T.let(@setup_tasks, T.nilable(T::Array[SetupTask])) @clis = T.let(@clis, T.nilable(T::Hash[Symbol, T.untyped])) @tasks = T.let(@tasks, T.nilable(Tasks)) end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
264 265 266 |
# File 'lib/kuby/dev_setup.rb', line 264 def environment @environment end |
Instance Method Details
#run ⇒ Object
275 276 277 |
# File 'lib/kuby/dev_setup.rb', line 275 def run SetupTaskList.new(setup_tasks, clis).run end |