staging/lib/vcap/staging/plugin/node/plugin.rb
def package_json_start
    if @package_config.is_a?(Hash) &&
        @package_config["scripts"].is_a?(Hash) &&
        @package_config["scripts"]["start"]
      @package_config["scripts"]["start"].sub(/^\s*node\s+/, "")
    end
  end
# detect start script from package.json
detect start script from package.json
detect start script from package . json
def package_json_start
    if @package_config.is_a?(Hash) &&
        @package_config["scripts"].is_a?(Hash) &&
        @package_config["scripts"]["start"]
      @package_config["scripts"]["start"].sub(/^\s*node\s+/, "")
    end
  end
def package_json_start if @package_config . is_a? ( Hash ) && @package_config [ "scripts" ] . is_a? ( Hash ) && @package_config [ "scripts" ] [ "start" ] @package_config [ "scripts" ] [ "start" ] . sub ( / ^ \s *node \s + / , "" ) end end
detect start script from package.json
detect start script from package . json