Class: Shoes::Package::Validator

Inherits:
Furoshiki::Validator
  • Object
show all
Defined in:
shoes-package/lib/shoes/package/configuration.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



148
149
150
151
152
153
154
155
156
# File 'shoes-package/lib/shoes/package/configuration.rb', line 148

def validate
  unless config.run && config.working_dir.join(config.run).exist?
    add_missing_file_error(config.run, "Run file")
  end

  return unless config.icons[:osx] && !config.working_dir.join(config.icons[:osx]).exist?

  add_missing_file_error(config.icons[:osx], "OS X icon file")
end