Class: Podrb::Commands::Init::Output

Inherits:
BaseOutput show all
Defined in:
lib/podrb/commands/init/output.rb

Instance Method Summary collapse

Methods inherited from BaseOutput

call, #initialize

Constructor Details

This class inherits a constructor from Podrb::Commands::BaseOutput

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/podrb/commands/init/output.rb', line 7

def call
  case @context[:details]
  when :already_initialized
    "      Podrb already was initialized!\n    OUTPUT\n  when :successfully_initialized\n    <<~OUTPUT\n      Podrb successfully initialized!\n    OUTPUT\n  when :home_not_found\n    <<~OUTPUT\n      It seems that $HOME is empty. Is your home directory set up correctly?\n    OUTPUT\n  when :cannot_create_initial_config\n    <<~OUTPUT\n      Podrb couldn't create the config files.\n    OUTPUT\n  end\nend\n"