You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Vagranfile でローカル実行 vagrant up 時、つまり Vagrantfile1 の実行時にホスト OS 側のセットアップをしたい場合、Ruby の system モジュール関数を使ってシェル・コマンドを実行できます。 しかし、コマンドごとに system 関数を使うのが冗長だったので簡素にしたいのです。 # Script to run on Host OS (冗長な書き方。可読性がいささか悪い) system('rm -rf hello-world > /dev/null 2>&1') system('echo "Hello world!" > hello-world') # Script to run on Guest OS (可能なら、上記を下のように描きたい) $script_guest = <<-'SCRIPT' cat /vagrant/hello-world
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く