Sha256: 0772165c1d1c939f419790fdab019c78e93195e695cd4520b67fefe6815192a1

Contents?: true

Size: 876 Bytes

Versions: 236

Compression:

Stored size: 876 Bytes

Contents

module Specinfra
  module Command
    module Module
      module Service
        module Delegator
          def def_delegator_service_under(under)
            self.send(:alias_method, :check_is_enabled, :"check_is_enabled_under_#{under}")
            self.send(:alias_method, :check_is_running, :"check_is_running_under_#{under}")
            self.send(:alias_method, :enable,           :"enable_under_#{under}")
            self.send(:alias_method, :disable,          :"disable_under_#{under}")
            self.send(:alias_method, :start,            :"start_under_#{under}")
            self.send(:alias_method, :stop,             :"stop_under_#{under}")
            self.send(:alias_method, :restart,          :"restart_under_#{under}")
            self.send(:alias_method, :reload,           :"reload_under_#{under}")
          end
        end
      end
    end
  end
end

Version data entries

236 entries across 236 versions & 3 rubygems

Version Path
specinfra-2.76.5 lib/specinfra/command/module/service/delegator.rb
specinfra-2.76.4 lib/specinfra/command/module/service/delegator.rb
specinfra-2.76.3 lib/specinfra/command/module/service/delegator.rb
specinfra-2.76.2 lib/specinfra/command/module/service/delegator.rb
specinfra-2.76.1 lib/specinfra/command/module/service/delegator.rb
specinfra-2.76.0 lib/specinfra/command/module/service/delegator.rb
specinfra-2.75.1 lib/specinfra/command/module/service/delegator.rb
specinfra-rb19-2.44.7 lib/specinfra/command/module/service/delegator.rb
specinfra-2.75.0 lib/specinfra/command/module/service/delegator.rb
specinfra-2.74.0 lib/specinfra/command/module/service/delegator.rb
specinfra-2.73.4 lib/specinfra/command/module/service/delegator.rb
specinfra-2.73.3 lib/specinfra/command/module/service/delegator.rb
specinfra-2.73.2 lib/specinfra/command/module/service/delegator.rb
specinfra-2.73.1 lib/specinfra/command/module/service/delegator.rb
specinfra-2.73.0 lib/specinfra/command/module/service/delegator.rb
specinfra-2.72.1 lib/specinfra/command/module/service/delegator.rb
specinfra-2.72.0 lib/specinfra/command/module/service/delegator.rb
specinfra-2.71.3 lib/specinfra/command/module/service/delegator.rb
specinfra-2.71.2 lib/specinfra/command/module/service/delegator.rb
specinfra-2.71.1 lib/specinfra/command/module/service/delegator.rb