Sha256: a600626c08ee30256cac74330d13f9e54f1232357ebbd6e456c95ba96052ce63

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

module HackBoxen
  namespace :hb do

    desc "Copy the Icss file to the output directory in the filesystem specified in the WorkingConfig"
    task :icss => ['hb:create_required_paths'] do
      icss_yaml   = File.join(path_to(:hb_config), "#{WorkingConfig[:protocol]}.icss.yaml")
      if File.exists? icss_yaml
        icss      = YAML.load(File.read icss_yaml)
        icss_json = File.join(path_to(:data_dir), "#{WorkingConfig[:protocol]}.icss.json")
        HackBoxen.current_fs.open(File.join(icss_json), 'w') { |f| f.puts icss.to_json }
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hackboxen-0.1.0 lib/hackboxen/tasks/icss.rb