def add_namespace(image, path)
      namespace path.to_sym do |_args|
        require 'rspec/core/rake_task'
        ::RSpec::Core::RakeTask.new(:spec) do |task|
          task.pattern = "#{path}/spec/*_spec.rb"
        end

        docker_image = Vtasks::Docker::Image.new(image, path, args)

        lint_image(path)

        desc 'Build and tag docker image'
        task :build do
          docker_image.build_with_tags
        end

        desc 'Publish docker image'
        task :push do
          docker_image.push
        end
      end
    end
def add_namespace(image, path)
      namespace path.to_sym do |_args|
        require 'rspec/core/rake_task'
        ::RSpec::Core::RakeTask.new(:spec) do |task|
          task.pattern = "#{path}/spec/*_spec.rb"
        end

        docker_image = Vtasks::Docker::Image.new(image, path, args)

        lint_image(path)

        desc 'Build and tag docker image'
        task :build do
          docker_image.build_with_tags
        end

        desc 'Publish docker image'
        task :push do
          docker_image.push
        end
      end
    end
def define_tasks
 Image namespace