Class: Orchparty::App
- Inherits:
-
Object
- Object
- Orchparty::App
- Defined in:
- lib/orchparty.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(cluster_name:, application_name:, force_variable_definition:, file_name:, status_dir:, options: {}) ⇒ App
constructor
A new instance of App.
- #install ⇒ Object
- #plugins ⇒ Object
- #print(method:, out_io:) ⇒ Object
- #upgrade ⇒ Object
Constructor Details
#initialize(cluster_name:, application_name:, force_variable_definition:, file_name:, status_dir:, options: {}) ⇒ App
Returns a new instance of App.
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/orchparty.rb', line 26 def initialize(cluster_name:, application_name:, force_variable_definition:, file_name:, status_dir:, options: {}) @cluster_name = cluster_name @application_name = application_name @force_variable_definiton = force_variable_definition @file_name = file_name @status_dir = status_dir @options = Orchparty. = load_plugins end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
24 25 26 |
# File 'lib/orchparty.rb', line 24 def @options end |
Instance Method Details
#install ⇒ Object
47 48 49 |
# File 'lib/orchparty.rb', line 47 def install app.install end |
#plugins ⇒ Object
39 40 41 |
# File 'lib/orchparty.rb', line 39 def plugins Orchparty::Plugin.plugins end |
#print(method:, out_io:) ⇒ Object
43 44 45 |
# File 'lib/orchparty.rb', line 43 def print(method:, out_io:) app(out_io:).print(method) end |
#upgrade ⇒ Object
51 52 53 |
# File 'lib/orchparty.rb', line 51 def upgrade app.upgrade end |