module DockerizeRails module DockerCommands require 'docker' def self.version Docker.version end def self.pull status = 0 status += DockerPull.pull_ruby status += DockerPull.pull_mysql status += DockerPull.pull_postgres status rescue Docker::Error::NotFoundError => exception puts puts exception.to_s.red puts 1 end def self.build status = 0 status += DockerBuild.build_rails status += DockerBuild.build_postgres status += DockerBuild.build_mysql status rescue Docker::Error::NotFoundError => exception puts puts exception.to_s.red puts 1 end end end