Method: Cnvrg::Commands::Flow#verify

Defined in:
lib/cnvrg/cli/flow.rb

#verify(path) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/cnvrg/cli/flow.rb', line 26

def verify(path)
  unless @curr_dir.present?
    @cli.log_message("Cant run this command because you are not in project directory", Thor::Color::RED)
    return false
  end
  @flow = Cnvrg::Flows.new(@curr_dir, path)
  @cli.log_message("The Flow is Valid", Thor::Color::GREEN)
end