class Docklean

Author: Tom Llewellyn-Smith <tom@onixconsulting.co.uk> Copyright: © Onix Consulting Limited 2012-2015. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Author: Tom Llewellyn-Smith <tom@onixconsulting.co.uk> Copyright: © Onix Consulting Limited 2012-2015. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Author: Tom Llewellyn-Smith <tom@onixconsulting.co.uk> Copyright: © Onix Consulting Limited 2012-2015. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Author: Tom Llewellyn-Smith <tom@onixconsulting.co.uk> Copyright: © Onix Consulting Limited 2012-2015. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Author: Tom Llewellyn-Smith <tom@onixconsulting.co.uk> Copyright: © Onix Consulting Limited 2012-2015. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Public Class Methods

new(config) click to toggle source
# File lib/docklean.rb, line 32
def initialize(config)  
    begin
        if File.exists?(config) then
            puts "info: #{config} exists using it"
            self.read(config)
            @docker_bin = self.get_conf('docker_bin')
            @max_age = self.get_conf('max_age')
        end
    rescue Docklean::ErrorNoConfiguration
        puts "error: please provide a YAML configuration"
        exit
    end
        
end

Public Instance Methods

dump() click to toggle source
# File lib/docklean.rb, line 47
def dump()
    puts self.inspect
end