Class: Kitsune::Kit::Workflows::EnvironmentStatus

Inherits:
Data
  • Object
show all
Defined in:
lib/kitsune/kit/workflows/inspect_environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



9
10
11
# File 'lib/kitsune/kit/workflows/inspect_environment.rb', line 9

def environment
  @environment
end

#last_operationsObject (readonly)

Returns the value of attribute last_operations

Returns:

  • (Object)

    the current value of last_operations



9
10
11
# File 'lib/kitsune/kit/workflows/inspect_environment.rb', line 9

def last_operations
  @last_operations
end

#managed_resourcesObject (readonly)

Returns the value of attribute managed_resources

Returns:

  • (Object)

    the current value of managed_resources



9
10
11
# File 'lib/kitsune/kit/workflows/inspect_environment.rb', line 9

def managed_resources
  @managed_resources
end

#serverObject (readonly)

Returns the value of attribute server

Returns:

  • (Object)

    the current value of server



9
10
11
# File 'lib/kitsune/kit/workflows/inspect_environment.rb', line 9

def server
  @server
end

Instance Method Details

#to_hObject



10
11
12
13
14
15
16
17
# File 'lib/kitsune/kit/workflows/inspect_environment.rb', line 10

def to_h
  {
    environment: environment,
    server: server&.to_h,
    managed_resources: managed_resources,
    last_operations: last_operations
  }
end