Sha256: 1bea13d7e88b39d1c1ec550624119a76fdf1477e080884445ab8d9ee851f4049

Contents?: true

Size: 484 Bytes

Versions: 16

Compression:

Stored size: 484 Bytes

Contents

require 'fileutils'

class MyNewCommand < Jekyll::Command
  class << self

    # As the docs get precompiled before being sent up to jekyll,
    # and they sit inside Chameleon, the images folder needs to be
    # copied into the docs repo.
    if (!File.directory?('images'))
      FileUtils.cp_r '../images', 'images'
    end

    def init_with_program(prog)
      prog.command(:build) do |c|
        c.action do
          puts "hello world"
        end
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
pusher-chameleon-1.4.6 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.4.5 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.4.4 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.4.3 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.4.2 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.4.1 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.4.0 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.3.0 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.2.1 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.2.0 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.1.0 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.0.4 docs/_plugins/copy_images_directory.rb
pusher-chameleon-1.0.3 docs/_plugins/copy_images_directory.rb
pusher_chameleon-1.0.3 docs/_plugins/copy_images_directory.rb
pusher_chameleon-1.0.2 docs/_plugins/copy_images_directory.rb
pusher_chameleon-1.0.0 docs/_plugins/copy_images_directory.rb