#!/usr/bin/env ruby

require "zip"

bundle_files = Dir[ 'bin/*', 'commands/*' ] + %w(manifest.json config.yaml)

# Create .cog
Zip::File.open("miasma.cog", Zip::File::CREATE) do |z|
  bundle_files.each do |f|
    z.add(f, f)
  end
end

#!/usr/bin/env ruby

require "zip"

bundle_files = Dir[ 'bin/*', 'commands/*' ] + %w(manifest.json config.yaml)

# Create .cog
Zip::File.open("miasma.cog", Zip::File::CREATE) do |z|
  bundle_files.each do |f|
    z.add("miasma/#{f}", f)
  end
end

Include miasma dir in bundle archive
Include miasma dir in bundle archive

During install, Cog looks in a directory with the same name as the
bundle for the config and all other files.
