module StashNotifier

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Constants

VERSION

Public Class Methods

new(args) click to toggle source
# File lib/stash_notifier.rb, line 22
def new(args)
  # TODO: Refactor this into private method
  build_args               = {}
  build_args[:state]       = args[:build_status]
  build_args[:key]         = args[:build_key]
  build_args[:name]        = args[:build_name]
  build_args[:url]         = args[:build_url]
  build_args[:description] = args[:build_description]

  build_result = StashNotifier::BuildResult.new(build_args)

  args[:build_result] = build_result.to_json

  StashNotifier::HTTPClient.new(args)
end