(▰╹◡╹) time ruby daemon.rb
daemon: bye
daemon: bye (stderr)
ruby daemon.rb 0.08s user 0.04s system 2% cpu 5.136 total
新社会人に必須である:
| 更新: | 2024-10-08 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2024.1 |
| URL: | https://voluntas.github.io/ |
概要
| package main | |
| import ( | |
| "encoding/json" | |
| "github.com/mizzy/consul-catalog" | |
| "log" | |
| "os" | |
| "reflect" | |
| "time" | |
| ) |
| #!/usr/bin/env ruby | |
| # Puppet command running without SSL. Try: | |
| # $ ruby puppet.rb master --debug --no-daemonize --logdest console | |
| # $ ruby puppet.rb agent --server 127.0.0.1 --debug --no-daemonize --onetime --noop | |
| require "puppet/util/command_line" | |
| require "puppet/network/http/connection" | |
| require "puppet/network/http/webrick" |
| use strict; | |
| use List::Util; | |
| my @name_list = ( "おっくん", "きたけー", "たけお", "ぐっさん" ); | |
| my @s_name_list = List::Util::shuffle @name_list; | |
| print join(", ", @s_name_list); |
serverspec への matcher の追加方法に関する覚書。
serverspec のディレクトリ構成は以下のようになっています。
serverspec
├── bin