るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.012秒)
トップページ > クエリ:sh[x] > クエリ:mkdir[x]

別のキーワード

  1. rake sh
  2. fileutils sh
  3. constants lock_sh
  4. _builtin lock_sh
  5. sync sh

ライブラリ

クラス

キーワード

検索結果

shell (26178.0)

Ruby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。

...uby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。

sh
/csh の制御文は Ruby の機能を用いて実現します。

=== サンプル

==== Example 1:

require 'shell'
sh
= Shell.cd("/tmp")
sh
.mkdir "shell-test-...
...shell-test-1")
sh
.cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
unless sh.exists?(dir)
sh
.mkdir dir
sh
.cd(dir) do
f = sh.open("tmpFile", "w")
f.puts "TEST"
f.close
end
print sh.pwd
end
end

==== Example 2:

require 'shell'
sh
...
...= Shell.cd("/tmp")
sh
.transact do
mkdir
"shell-test-1" unless exists?("shell-test-1")
cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
if !exists?(dir)
mkdir
dir
cd(dir) do
f = open("tmpFile", "w")
f.print "TEST\n"
f.close...

Shell#mkdir(*path) -> Array (21135.0)

Dir.mkdirと同じです。 (複数可)

...Dir.mkdirと同じです。 (複数可)

@param path 作成するディレクトリ名を文字列で指定します。

@return 作成するディレクトリの一覧の配列を返します。

使用例
require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
p sh.mkdir("foo") #=>...

Shell::CommandProcessor#mkdir(*path) -> Array (21135.0)

Dir.mkdirと同じです。 (複数可)

...Dir.mkdirと同じです。 (複数可)

@param path 作成するディレクトリ名を文字列で指定します。

@return 作成するディレクトリの一覧の配列を返します。

使用例
require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
p sh.mkdir("foo") #=>...

Shell::Filter#mkdir(*path) -> Array (21135.0)

Dir.mkdirと同じです。 (複数可)

...Dir.mkdirと同じです。 (複数可)

@param path 作成するディレクトリ名を文字列で指定します。

@return 作成するディレクトリの一覧の配列を返します。

使用例
require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
p sh.mkdir("foo") #=>...

Shell#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (3048.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

絞り込み条件を変える

Shell#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (3048.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (3048.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (3048.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

Shell::Filter#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (3048.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

Shell::Filter#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (3048.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

絞り込み条件を変える