]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
change json comments from '#' to more standard '//'
authorelijah <elijah@riseup.net>
Fri, 1 Mar 2013 03:51:36 +0000 (19:51 -0800)
committerelijah <elijah@riseup.net>
Fri, 1 Mar 2013 03:51:36 +0000 (19:51 -0800)
lib/leap_cli/commands/new.rb
lib/leap_cli/config/manager.rb
test/leap_platform/provider_base/services/openvpn.json
test/provider/common.json
test/provider/nodes/ns1.json
test/provider/nodes/ns2.json
test/provider/provider.json

index bf8e7f179a7fe4aa32d07f8d068d9f38b36bc32d..dc37265613fb6e5ba985810466fc193da847d499 100644 (file)
@@ -81,15 +81,7 @@ module LeapCli; module Commands
   end
 
   def leapfile_content(options)
-    # @leap_version = "#{LeapCli::VERSION}"
-    %[## Required:
-@platform_directory_path = "#{options[:platform]}"
-
-## Optional:
-# @custom_vagrant_vm_line = "config.vm.boot_mode = :gui"
-# @log = "/tmp/leap.log"
-# @vagrant_network = '10.5.5.0/24'
-]
+    %[@platform_directory_path = "#{options[:platform]}"\n# see https://leap.se/en/docs/platform/config for more options]
   end
 
   GITIGNORE_CONTENT = <<EOS
@@ -100,9 +92,9 @@ test/cert
 EOS
 
   def provider_content(options)
-  %[#
-# General service provider configuration.
-#
+  %[//
+// General service provider configuration.
+//
 {
   "domain": "#{options[:domain]}",
   "name": {
@@ -122,9 +114,9 @@ EOS
   end
 
   COMMON_CONTENT = <<EOS
-#
-# Options put here are inherited by all nodes.
-#
+//
+// Options put here are inherited by all nodes.
+//
 {
 }
 EOS
index b90c7415d29219ff9dea24ffe15ac5174da1add5..b5ce092ac66cc93b235d6d01977b96fc39ceda9f 100644 (file)
@@ -191,7 +191,7 @@ module LeapCli
         buffer = StringIO.new
         File.open(filename) do |f|
           while (line = f.gets)
-            next if line =~ /^\s*#/
+            next if line =~ /^\s*\/\//
             buffer << line
           end
         end
index 8c0965e36770e914706f4918f11b00f64392a5c4..00cd957abf9c24e51a1cbc2222ca7df5e29a9d47 100644 (file)
@@ -1,7 +1,7 @@
-#
-#  "server_crt": "= file :node_x509_cert",
-#  "server_key": "= file :node_x509_key"
-#
+//
+//  "server_crt": "= file :node_x509_cert",
+//  "server_key": "= file :node_x509_key"
+//
 {
   "service_type": "user_service",
   "x509": {
index 1ccd62462bcf652616a275995ecc180fed92a0cf..fa73051f195b9fc638e239612629fe17ad09b90a 100644 (file)
@@ -1,6 +1,6 @@
-#
-# Options put here are inherited by all nodes.
-#
+//
+// Options put here are inherited by all nodes.
+//
 {
   "ssh": {
     "port": 22
index 6323d1092a042271f10d6d4015c56051a352d896..afb5ef1771079ac387c928fe6523fc933dd61254 100644 (file)
@@ -1,6 +1,6 @@
-#
-# this is a comment
-#
+//
+// this is a comment
+//
 {
   "services": "dns",
   "tags": "production",
index eeba9df506a991d6b5232051337c172148f619a6..e1917fba7b61fddf7370cd0836a85bb385558e44 100644 (file)
@@ -1,6 +1,6 @@
-#
-# A nameserver
-#
+//
+// A nameserver
+//
 {
   "services": "dns",
   "tags": "production",
index 3db24416a538d683b3aba4ccf57f0485f03b4db3..4fff3bf0abd7f2d573c4f742aeb1c5ad5d131b85 100644 (file)
@@ -1,6 +1,6 @@
-#
-# General service provider configuration.
-#
+//
+// General service provider configuration.
+//
 {
   "domain": "bitmask.net",
   "name": {