Sha256: 85fda818ddce630c3c3cf3207a968915aca14d72e1616a922a0bb25304132547
Contents?: true
Size: 1.55 KB
Versions: 5
Compression:
Stored size: 1.55 KB
Contents
module DockerizeRails module DockerCommands require 'docker' def self.info puts DockerHelpers.print_version puts 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 def self.start status = 0 status += DockerStart.start_mysql status += DockerStart.start_postgres status += DockerStart.start_rails status rescue Docker::Error::NotFoundError => exception puts puts exception.to_s.red puts 1 end def self.stop status = 0 status += DockerStop.stop_rails status += DockerStop.stop_mysql status += DockerStop.stop_postgres status rescue Docker::Error::NotFoundError => exception puts exception.to_s.strip.red 1 end def self.delete status = 0 status += DockerDelete.delete_rails status += DockerDelete.delete_mysql status += DockerDelete.delete_postgres status rescue Docker::Error::NotFoundError => exception puts exception.to_s.strip.red 1 end end end
Version data entries
5 entries across 5 versions & 1 rubygems