Sha256: b97c309bb60917a637097b2fadedfc4bc7c8b534c97cdcbbf6977462966ec96e

Contents?: true

Size: 437 Bytes

Versions: 14

Compression:

Stored size: 437 Bytes

Contents

desc "System configuration related commands"
namespace :system do

  desc "Check system configuration for potential problems"
  task :check do
    Hem::Lib::HostCheck.check.each do |k,v|
      name = k.to_s.gsub('_', ' ')
      name[0] = name[0].upcase

      if v == :ok
        Hem.ui.success "#{name}: OK"
      else
        Hem.ui.error "#{name}: FAILED\n"
        Hem.ui.warning v.advice.gsub(/^/, '  ')
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hem-1.2.4 lib/hem/tasks/system.rb
hem-1.2.3 lib/hem/tasks/system.rb
hem-1.2.2 lib/hem/tasks/system.rb
hem-1.2.1 lib/hem/tasks/system.rb
hem-1.2.0 lib/hem/tasks/system.rb
hem-1.1.2 lib/hem/tasks/system.rb
hem-1.1.1 lib/hem/tasks/system.rb
hem-1.1.0 lib/hem/tasks/system.rb
hem-1.0.1.beta6 lib/hem/tasks/system.rb
hem-1.0.1.beta5 lib/hem/tasks/system.rb
hem-1.0.1.beta4 lib/hem/tasks/system.rb
hem-1.0.1.beta3 lib/hem/tasks/system.rb
hem-1.0.1.beta2 lib/hem/tasks/system.rb
hem-1.0.1.beta1 lib/hem/tasks/system.rb