Skip to content

Instantly share code, notes, and snippets.

@melikhov-dev
Created November 17, 2016 11:30
Show Gist options
  • Save melikhov-dev/eeec9def0017d0d177ac4df88d7f0061 to your computer and use it in GitHub Desktop.
Save melikhov-dev/eeec9def0017d0d177ac4df88d7f0061 to your computer and use it in GitHub Desktop.
пример
createCommand: function(name, runner) {
var commandTimeout = ref(settings, 'config.indexer.' + name + '.timeout');
return new Command({
name: name,
runner: runner,
url: baseAddress,
prepare: prepares.indexer,
ssl: sslOptions,
timeout: commandTimeout || backendTimeout,
expectations: {
statusCode: 200
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment