Sha256: a65db91033e27d1e72d2e536c6a020c44f4bc27f03e2efcb8f18053f9b79308e

Contents?: true

Size: 614 Bytes

Versions: 4

Compression:

Stored size: 614 Bytes

Contents

module Opsk 
  class Dockerize < Thor::Group
    include Thorable, Thor::Actions

    argument :from, :type => :string, :desc => 'Which source image to use'
    argument :os_type, :type=> :string, :desc => 'Flavor of container Ubuntu/Centos'


    desc 'Creates a docker image using the current opsk sandbox'

    def create_dockerfiles
	empty_directory('dockerfiles')
	machines.each {|m|
	  empty_directory("dockerfiles/#{m}/")
	  template("templates/#{type_of}/docker/#{os_type}_docker.erb", "dockerfiles/#{m}/Dockerfile")
	}
    end

    def fig
	template("templates/fig.yml.erb", 'fig.yml')
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opskeleton-0.8.3 lib/opskeleton/dockerize.rb
opskeleton-0.8.2 lib/opskeleton/dockerize.rb
opskeleton-0.8.0 lib/opskeleton/dockerize.rb
opskeleton-0.7.3 lib/opskeleton/dockerize.rb