Class: Orchparty::App

Inherits:
Object
  • Object
show all
Defined in:
lib/orchparty.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = options

  Orchparty.options = options

  load_plugins
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



24
25
26
# File 'lib/orchparty.rb', line 24

def options
  @options
end

Instance Method Details

#installObject



47
48
49
# File 'lib/orchparty.rb', line 47

def install
  app.install
end

#pluginsObject



39
40
41
# File 'lib/orchparty.rb', line 39

def plugins
  Orchparty::Plugin.plugins
end


43
44
45
# File 'lib/orchparty.rb', line 43

def print(method:, out_io:)
  app(out_io:).print(method)
end

#upgradeObject



51
52
53
# File 'lib/orchparty.rb', line 51

def upgrade
  app.upgrade
end