Sha256: fd029956b7af9c892a3962598d579f8a77fce5ca9cf25f42204778a1a99221f4

Contents?: true

Size: 1.06 KB

Versions: 14

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

##
# Usage example:
#
#   ConvenientService::Examples::Standard::Gemfile::Services::AssertNodeAvailable.result
#
module ConvenientService
  module Examples
    module Standard
      module Gemfile
        module Services
          class AssertNodeAvailable
            include ConvenientService::Standard::Config

            ##
            # NOTE: `commit_config!` is used explicitly, since `step` method is NOT missed. It will be taken from `Turnip`.
            # - https://github.com/jnicklas/turnip/blob/master/lib/turnip.rb#L29
            # - https://github.com/jnicklas/turnip/blob/8272ef92902329d2d29bb5ba2b29cd431523478f/lib/turnip/define.rb#L3
            #
            # TODO: Troubleshooting guide.
            #
            commit_config!

            ##
            # NOTE: `> /dev/null 2>&1` is used to hide output.
            # https://unix.stackexchange.com/a/119650/394253
            #
            step Services::RunShell, in: {command: -> { "which node > /dev/null 2>&1" }}
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
convenient_service-0.11.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.10.1 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.10.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.9.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.8.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.7.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.6.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.5.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.4.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.3.1 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.3.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.2.1 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.2.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb
convenient_service-0.1.0 lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb