source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | crayfishx/puppet-purge | https://github.com/crayfishx/puppet-purge | lib/puppet/type/purge.rb | Ruby | apache-2.0 | 19 | master | 6,881 | require 'puppet'
Puppet::Type.newtype(:purge) do
attr_reader :purged_resources
@doc=(<<-EOT)
This is a metatype to purge resources from the agent. When run without
parameters the purge type takes a resource type as a title. The
resource type must be one that has a provider that supports the instances
m... |
github | crayfishx/puppet-purge | https://github.com/crayfishx/puppet-purge | spec/unit/type/purge_spec.rb | Ruby | apache-2.0 | 19 | master | 4,993 | require 'spec_helper'
purge = Puppet::Type.type(:purge)
describe purge do
before :each do
system_users = {
"present0" => "100",
"present1" => "101",
"present2" => "102",
"present3" => "103",
"present4" => "104",
"present5" => "105",
"root" => "0",
"admin" ... |
github | djellemah/philtre | https://github.com/djellemah/philtre | philtre.gemspec | Ruby | mit | 19 | master | 1,103 | # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'philtre/version'
Gem::Specification.new do |spec|
spec.name = 'philtre'
spec.version = Philtre::VERSION
spec.authors = ['John Anderson']
spec.email = ['panic@... |
github | djellemah/philtre | https://github.com/djellemah/philtre | tasks/console.rake | Ruby | mit | 19 | master | 230 | desc "pry with libs"
task :console do
ARGV.shift()
ENV['RUBYLIB'] ||= ''
ENV['RUBYLIB'] += ":#{File.expand_path('.')}/lib/philtre"
exec "pry -r sequel -r philtre -I ./lib -I ."
end
task :pry => :console
task :irb => :pry |
github | djellemah/philtre | https://github.com/djellemah/philtre | spec/filter_spec.rb | Ruby | mit | 19 | master | 17,182 | require_relative 'spec_helper.rb'
require_relative '../lib/philtre/filter.rb'
# for blank?
Sequel.extension :blank
describe Philtre::Filter do
# must be in before otherwise it's unpleasant to hook the
# class in to the dataset.
before :all do
@dataset = Sequel.mock[:planks].dup
class Plank < Sequel::Mod... |
github | djellemah/philtre | https://github.com/djellemah/philtre | spec/grinder_spec.rb | Ruby | mit | 19 | master | 6,363 | require_relative 'spec_helper.rb'
require_relative '../lib/philtre.rb'
Sequel.extension :blank
Sequel.extension :core_extensions
describe Philtre::Grinder do
def ds
@ds ||= Sequel.mock[:t].filter( Sequel.&(:name.lieu, :title.lieu) ).order( :birth_year.lieu )
end
def other_ds
@other_ds ||= Sequel.mock[... |
github | djellemah/philtre | https://github.com/djellemah/philtre | spec/dataset_spec.rb | Ruby | mit | 19 | master | 1,640 | require_relative 'spec_helper.rb'
require_relative '../lib/philtre/grinder.rb'
require_relative '../lib/philtre/sequel_extensions.rb'
require_relative '../lib/philtre/core_extensions.rb'
Sequel.extension :blank
Sequel.extension :core_extensions
describe Sequel::Dataset do
subject do
Sequel.mock[:t].filter( Seq... |
github | djellemah/philtre | https://github.com/djellemah/philtre | spec/spec_helper.rb | Ruby | mit | 19 | master | 268 | require 'rspec'
require 'faker'
require 'sequel'
# turn off the "old syntax" warnings
RSpec.configure do |config|
config.mock_with :rspec do |c|
c.syntax = [:should, :expect]
end
config.expect_with :rspec do |c|
c.syntax = [:should, :expect]
end
end |
github | djellemah/philtre | https://github.com/djellemah/philtre | spec/predicate_splitter_spec.rb | Ruby | mit | 19 | master | 2,058 | require_relative 'spec_helper.rb'
require_relative '../lib/philtre/predicate_splitter.rb'
require_relative '../lib/philtre/predicates.rb'
# for blank?
Sequel.extension :blank
describe Philtre::PredicateSplitter do
describe '#split_key' do
describe 'successful' do
let(:splitter){ Philtre::PredicateSplitter... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre.rb | Ruby | mit | 19 | master | 1,930 | require 'philtre/filter.rb'
require 'philtre/grinder.rb'
# The high-level interface to Philtre. There are several ways
# to use it:
# 1. Philtre.new
# philtre = Philtre.new name: 'Moustafa'
# 1. Philtre
# philtre = Philtre dataset: some_dataset, age_gt: 21
# philtre = Philtre dataset: some_dataset, with {a... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/predicates.rb | Ruby | mit | 19 | master | 3,965 | module Philtre
# Container for methods which return Sequel::SQL::Expression or something
# that can become one through Sequel.expr, eg {year: 2013}
#
# Reminder: they're defined as methods so we can benefit from
# using them inside this class to define other predicates.
#
# This can be extended in all the... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/empty_expression.rb | Ruby | mit | 19 | master | 269 | module Philtre
# used when transforming to unaltered or partially
# altered datasets
class EmptyExpression < Sequel::SQL::Expression
# sometimes this is returned in place of an empty array
def empty?; true; end
def to_s_append( ds, s ); end
end
end |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/core_extensions.rb | Ruby | mit | 19 | master | 695 | # several ways to create placeholders in Sequel statements
module Kernel
private
def PlaceHolder( name, sql_field = nil, bt = caller )
Philtre::PlaceHolder.new name, sql_field, bt = caller
end
alias_method :Lieu, :PlaceHolder
end
class Symbol
def lieu( sql_field = nil )
Lieu self, sql_field, caller
... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/grinder.rb | Ruby | mit | 19 | master | 6,237 | begin
require 'ripar'
rescue LoadError
"silently move on cos it's not critical and we'll just not add those bits"
end
require 'philtre/filter.rb'
require 'philtre/place_holder.rb'
require 'philtre/empty_expression.rb'
# Using the expressions in the filter, transform a dataset with
# placeholders into a real datas... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/predicate_splitter.rb | Ruby | mit | 19 | master | 1,031 | require 'fastandand'
module Philtre
# This is to split things like birth_year_gt into
# - birth_year (the field)
# - gt (the predicate)
# Yes, there are side effects.
# === is provided so it can be used in case statements
# (which doesn't really work cos they're backwards).
class PredicateSplitter
... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/filter.rb | Ruby | mit | 19 | master | 7,202 | require 'sequel'
Sequel.extension :blank
require 'philtre/predicate_splitter'
require 'philtre/predicate_dsl'
require 'philtre/predicates'
module Philtre
# Parse the predicates on the end of field names, and round-trip the search fields
# between incoming params, controller and views.
# So,
#
# filter_pa... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/sequel_extensions.rb | Ruby | mit | 19 | master | 814 | # TODO docs for this
if defined? Ripar
class Sequel::Dataset
include Ripar
# make the roller understand dataset method
def roller
rv = super
class << rv
def to_dataset; riven end
end
rv
end
# roll the block and return the resulting dataset immediately
def roll... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/place_holder.rb | Ruby | mit | 19 | master | 1,019 | module Philtre
class PlaceHolder < Sequel::SQL::Expression
# name is what gets replaced by the operation and correspondingly named value in the filter
# sql_field is the name of the field that the operation will compare the named value to.
def initialize( name, sql_field = nil, bt = caller )
# backt... |
github | djellemah/philtre | https://github.com/djellemah/philtre | lib/philtre/predicate_dsl.rb | Ruby | mit | 19 | master | 679 | module Philtre
# This is a specialised module that also understands a simple
# DSL for creating predicates as methods.
#
# This is how the DSL works:
# each meth is a predicate, args is a set of alternatives
# and the block must return something convertible to a Sequel.expr
# to create the expression for ... |
github | michaeledgar/object_regex | https://github.com/michaeledgar/object_regex | Rakefile | Ruby | mit | 19 | master | 1,477 | require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "object_regex"
gem.summary = %Q{Perform regex searches on arbitrary sequences.}
gem.description = %Q{Provides regex-based searches on sequences of arbitrary objects. Developed for querying Ruby token stream... |
github | michaeledgar/object_regex | https://github.com/michaeledgar/object_regex | lib/object_regex/implementation.rb | Ruby | mit | 19 | master | 2,519 | # Provides general-purpose regex searching on any object implementing #reg_desc.
# See design_docs/object_regex for the mini-paper explaining it. With any luck,
# this will make it into Ripper so I won't have to do this here.
class ObjectRegex
def initialize(pattern)
@map = generate_map(pattern)
@pattern = ge... |
github | michaeledgar/object_regex | https://github.com/michaeledgar/object_regex | spec/object_regex_spec.rb | Ruby | mit | 19 | master | 2,740 | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
if RUBY_VERSION < "1.9"
describe 'ObjectRegex' do
it 'will raise upon loading under Ruby 1.8' do
expect { require 'object_regex' }.to raise_error(RuntimeError)
end
end
else
require 'object_regex'
class Token < Struct.new(:type, :co... |
github | vinhnglx/weer | https://github.com/vinhnglx/weer | weer.gemspec | Ruby | mit | 19 | develop | 1,144 | # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'weer/version'
Gem::Specification.new do |spec|
spec.name = 'weer'
spec.version = Weer::VERSION
spec.authors = ['Vinh Nguyen']
spec.email = ['vinh.nglx@gmail.c... |
github | vinhnglx/weer | https://github.com/vinhnglx/weer | spec/support/mocking.rb | Ruby | mit | 19 | develop | 1,015 | # Stub a request return fake weather
shared_context 'weathers' do
before do
yql = "select * from weather.forecast where woeid in (select woeid from geo.places(1) where text=\"Da Nang\")"
stub_request(:get, "http://query.yahooapis.com/v1/public/yql?env=store://datatables.org/alltableswithkeys&format=json&q=#{y... |
github | vinhnglx/weer | https://github.com/vinhnglx/weer | spec/lib/wetter_spec.rb | Ruby | mit | 19 | develop | 2,531 | require 'spec_helper'
describe Wetter do
include_context 'weathers'
let(:wetter) { Wetter.new('Da Nang') }
let(:invalid_wetter) { Wetter.new('fake_city') }
let(:response) { wetter.connect }
let(:raw_forecast) { wetter.forecast(response) }
let(:raw_wind) { wetter.wind(response) }
let(:raw_atmosphere) { we... |
github | vinhnglx/weer | https://github.com/vinhnglx/weer | lib/weer/cli/weather.rb | Ruby | mit | 19 | develop | 1,696 | require 'date'
module Weer
module CLI
class Weather < Thor
# Display weather information of a city
#
# Option
#
# temperature - Dislay forecast by temperature
# city - Your city
# all - Display all weather information
#
# Returns the weat... |
github | vinhnglx/weer | https://github.com/vinhnglx/weer | lib/weer/lib/wetter.rb | Ruby | mit | 19 | develop | 5,093 | require 'httparty'
require 'terminal-table'
class Wetter
# Set attributes reader
attr_reader :options
# include HTTParty
include HTTParty
# Instance variable
base_uri 'query.yahooapis.com'
# Create constructor Wetter object
#
# city - The city
#
# Examples
#
# Wetter.new(city)
#
# Re... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | metadata.rb | Ruby | apache-2.0 | 19 | master | 472 | name 'glassfish'
maintainer 'Peter Donald'
maintainer_email 'peter@realityforge.org'
license 'Apache-2.0'
description 'Installs/Configures GlassFish Application Server'
version '1.3.0'
chef_version '>= 16.0'
issues_url 'https://github.com/realityforge/chef-glassfish'
source_url 'https://github.com/realityforge/chef-gl... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | recipes/attribute_driven_domain.rb | Ruby | apache-2.0 | 19 | master | 65,145 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | recipes/default.rb | Ruby | apache-2.0 | 19 | master | 4,791 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | recipes/derive_version.rb | Ruby | apache-2.0 | 19 | master | 409 | if node['glassfish']['package_url'].nil?
variant = node['glassfish']['variant']
version = node['glassfish']['version']
node.override['glassfish']['package_url'] = node['glassfish']['package_urls'][variant][version]
end
raise "glassfish.package_url not specified and unable to be derived. Please specify an attrib... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | recipes/search_driven_domain.rb | Ruby | apache-2.0 | 19 | master | 1,602 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | recipes/attribute_driven_mq.rb | Ruby | apache-2.0 | 19 | master | 4,718 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/connector_connection_pool.rb | Ruby | apache-2.0 | 19 | master | 3,467 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/asadmin.rb | Ruby | apache-2.0 | 19 | master | 2,743 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/deployable.rb | Ruby | apache-2.0 | 19 | master | 3,486 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/thread_pool.rb | Ruby | apache-2.0 | 19 | master | 2,977 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/managed_executor_service.rb | Ruby | apache-2.0 | 19 | master | 4,868 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/mq.rb | Ruby | apache-2.0 | 19 | master | 5,617 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/mq_ensure_running.rb | Ruby | apache-2.0 | 19 | master | 1,126 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/mq_destination.rb | Ruby | apache-2.0 | 19 | master | 2,723 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/auth_realm.rb | Ruby | apache-2.0 | 19 | master | 2,392 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/javamail_resource.rb | Ruby | apache-2.0 | 19 | master | 2,829 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/property.rb | Ruby | apache-2.0 | 19 | master | 2,145 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/admin_object.rb | Ruby | apache-2.0 | 19 | master | 2,511 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/jms_resource.rb | Ruby | apache-2.0 | 19 | master | 2,360 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/managed_scheduled_executor_service.rb | Ruby | apache-2.0 | 19 | master | 4,499 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/iiop_listener.rb | Ruby | apache-2.0 | 19 | master | 3,068 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/managed_thread_factory.rb | Ruby | apache-2.0 | 19 | master | 3,277 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/jdbc_resource.rb | Ruby | apache-2.0 | 19 | master | 2,357 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/jdbc_connection_pool.rb | Ruby | apache-2.0 | 19 | master | 5,228 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/context_service.rb | Ruby | apache-2.0 | 19 | master | 3,137 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/file_user.rb | Ruby | apache-2.0 | 19 | master | 2,439 | #
# Copyright:: Akos Vandra
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/custom_resource.rb | Ruby | apache-2.0 | 19 | master | 2,608 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/jms_destination.rb | Ruby | apache-2.0 | 19 | master | 2,117 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/property_cache.rb | Ruby | apache-2.0 | 19 | master | 2,061 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/connector_resource.rb | Ruby | apache-2.0 | 19 | master | 2,386 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/domain.rb | Ruby | apache-2.0 | 19 | master | 15,773 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/wait_for_glassfish.rb | Ruby | apache-2.0 | 19 | master | 1,483 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/secure_admin.rb | Ruby | apache-2.0 | 19 | master | 2,395 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/jvm_options.rb | Ruby | apache-2.0 | 19 | master | 2,228 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/instance.rb | Ruby | apache-2.0 | 19 | master | 3,482 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/web_env_entry.rb | Ruby | apache-2.0 | 19 | master | 3,202 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/library.rb | Ruby | apache-2.0 | 19 | master | 2,344 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | resources/resource_adapter.rb | Ruby | apache-2.0 | 19 | master | 2,292 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | libraries/imqcmd.rb | Ruby | apache-2.0 | 19 | master | 1,409 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | libraries/asadmin.rb | Ruby | apache-2.0 | 19 | master | 5,240 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | libraries/glassfish_helper.rb | Ruby | apache-2.0 | 19 | master | 4,929 | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | attributes/windows.rb | Ruby | apache-2.0 | 19 | master | 327 | if node.windows?
node.default['glassfish']['base_dir'] = node['kernel']['os_info']['system_drive']
node.default['glassfish']['domains_dir'] = File.join(node['kernel']['os_info']['system_drive'], 'glassfish_domains')
node.default['openmq']['var_home'] = File.join(node['kernel']['os_info']['system_drive'], 'open_mq... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | attributes/default.rb | Ruby | apache-2.0 | 19 | master | 4,971 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/secure_admin.rb | Ruby | apache-2.0 | 19 | master | 2,406 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/connector_resource.rb | Ruby | apache-2.0 | 19 | master | 2,230 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/javamail_resource.rb | Ruby | apache-2.0 | 19 | master | 2,769 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/custom_resource.rb | Ruby | apache-2.0 | 19 | master | 4,127 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/web_env_entry.rb | Ruby | apache-2.0 | 19 | master | 2,332 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/auth_realm.rb | Ruby | apache-2.0 | 19 | master | 2,594 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/domain_windows.rb | Ruby | apache-2.0 | 19 | master | 6,564 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/mq_destination.rb | Ruby | apache-2.0 | 19 | master | 2,613 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/thread_pool.rb | Ruby | apache-2.0 | 19 | master | 4,552 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/managed_scheduled_executor_service.rb | Ruby | apache-2.0 | 19 | master | 3,640 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/context_service.rb | Ruby | apache-2.0 | 19 | master | 2,801 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/resource_adapter.rb | Ruby | apache-2.0 | 19 | master | 2,184 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/deployable_windows.rb | Ruby | apache-2.0 | 19 | master | 7,665 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/library_windows.rb | Ruby | apache-2.0 | 19 | master | 3,134 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/property.rb | Ruby | apache-2.0 | 19 | master | 1,872 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/mq.rb | Ruby | apache-2.0 | 19 | master | 12,859 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/jdbc_resource.rb | Ruby | apache-2.0 | 19 | master | 3,766 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/jms_destination.rb | Ruby | apache-2.0 | 19 | master | 1,785 | #
# Copyright:: James Walker
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/mq_ensure_running.rb | Ruby | apache-2.0 | 19 | master | 1,078 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/connector_connection_pool.rb | Ruby | apache-2.0 | 19 | master | 2,486 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/domain_linux.rb | Ruby | apache-2.0 | 19 | master | 9,629 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/file_user.rb | Ruby | apache-2.0 | 19 | master | 3,530 | #
# Copyright:: Akos Vandra
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/iiop_listener.rb | Ruby | apache-2.0 | 19 | master | 2,981 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/library_linux.rb | Ruby | apache-2.0 | 19 | master | 3,142 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/admin_object.rb | Ruby | apache-2.0 | 19 | master | 2,263 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/jms_resource.rb | Ruby | apache-2.0 | 19 | master | 2,162 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/managed_executor_service.rb | Ruby | apache-2.0 | 19 | master | 3,816 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/property_cache.rb | Ruby | apache-2.0 | 19 | master | 1,303 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/instance.rb | Ruby | apache-2.0 | 19 | master | 3,963 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
github | realityforge/chef-glassfish | https://github.com/realityforge/chef-glassfish | providers/jdbc_connection_pool.rb | Ruby | apache-2.0 | 19 | master | 4,167 | #
# Copyright:: Peter Donald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.