class List

Public Class Methods

info(project) click to toggle source
# File lib/Missile/list.rb, line 13
def self.info(project)
  if File.exist?(project)
      text = File.open(project)
      text.each_line do |line|
      end
  else
    puts "The deployment file you are looking for does not exist"
  end

end
list_all(file_path) click to toggle source
# File lib/Missile/list.rb, line 3
def self.list_all(file_path)
  if !(Dir.entries(file_path) - %w{. ..}).empty?
    Dir.entries(file_path).each do |e|
      puts e.chomp('.yaml') if !File.directory?(e)
    end
  else
    puts "There are no deployment files available"
  end
end